From b7e2cbc6307e2877047496a14298ae8a4e34a8d9 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 28 Mar 2023 22:45:11 +0300 Subject: [PATCH] Ported DailyEvents and TopUserDTO. --- old/src/PointToolsBundle/DTO/DailyEvents.php | 35 -------------------- old/src/PointToolsBundle/DTO/TopUserDTO.php | 35 -------------------- src/DTO/DailyEventsDTO.php | 17 ++++++++++ src/DTO/TopUserDTO.php | 14 ++++++++ 4 files changed, 31 insertions(+), 70 deletions(-) delete mode 100644 old/src/PointToolsBundle/DTO/DailyEvents.php delete mode 100644 old/src/PointToolsBundle/DTO/TopUserDTO.php create mode 100644 src/DTO/DailyEventsDTO.php create mode 100644 src/DTO/TopUserDTO.php diff --git a/old/src/PointToolsBundle/DTO/DailyEvents.php b/old/src/PointToolsBundle/DTO/DailyEvents.php deleted file mode 100644 index ddfaff4..0000000 --- a/old/src/PointToolsBundle/DTO/DailyEvents.php +++ /dev/null @@ -1,35 +0,0 @@ -date = new \DateTime($date); - $this->eventsCount = $eventsCount; - } - - public function getDate(): \DateTime - { - return $this->date; - } - - public function getEventsCount(): int - { - return $this->eventsCount; - } -} \ No newline at end of file diff --git a/old/src/PointToolsBundle/DTO/TopUserDTO.php b/old/src/PointToolsBundle/DTO/TopUserDTO.php deleted file mode 100644 index 3f3d31e..0000000 --- a/old/src/PointToolsBundle/DTO/TopUserDTO.php +++ /dev/null @@ -1,35 +0,0 @@ -login = $login; - $this->subscribersCount = $subscribersCount; - } - - public function getLogin(): string - { - return $this->login; - } - - public function getSubscribersCount(): int - { - return $this->subscribersCount; - } -} \ No newline at end of file diff --git a/src/DTO/DailyEventsDTO.php b/src/DTO/DailyEventsDTO.php new file mode 100644 index 0000000..f36aef5 --- /dev/null +++ b/src/DTO/DailyEventsDTO.php @@ -0,0 +1,17 @@ +date = new \DateTime($date); + } +} diff --git a/src/DTO/TopUserDTO.php b/src/DTO/TopUserDTO.php new file mode 100644 index 0000000..926b277 --- /dev/null +++ b/src/DTO/TopUserDTO.php @@ -0,0 +1,14 @@ +