From 64855c50766913491a2bd917f56c376836663b4d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 19 Mar 2023 19:20:12 +0300 Subject: [PATCH] Ported UsersRenamedEvent, UserSubscribersUpdatedEvent. --- .../Event/UserSubscribersUpdatedEvent.php | 65 ------------------- .../Event/UsersRenamedEvent.php | 37 ----------- src/Event/UserSubscribersUpdatedEvent.php | 25 +++++++ src/Event/UsersRenamedEvent.php | 19 ++++++ 4 files changed, 44 insertions(+), 102 deletions(-) delete mode 100644 old/src/PointToolsBundle/Event/UserSubscribersUpdatedEvent.php delete mode 100644 old/src/PointToolsBundle/Event/UsersRenamedEvent.php create mode 100644 src/Event/UserSubscribersUpdatedEvent.php create mode 100644 src/Event/UsersRenamedEvent.php diff --git a/old/src/PointToolsBundle/Event/UserSubscribersUpdatedEvent.php b/old/src/PointToolsBundle/Event/UserSubscribersUpdatedEvent.php deleted file mode 100644 index ffcd69f..0000000 --- a/old/src/PointToolsBundle/Event/UserSubscribersUpdatedEvent.php +++ /dev/null @@ -1,65 +0,0 @@ -user = $user; - $this->subscribed = $subscribed; - $this->unsubscribed = $unsubscribed; - } - - /** - * @return User - */ - public function getUser(): User - { - return $this->user; - } - - /** - * @return User[] - */ - public function getSubscribedUsers(): array - { - return $this->subscribed; - } - - /** - * @return User[] - */ - public function getUnsubscribedUsers(): array - { - return $this->unsubscribed; - } -} \ No newline at end of file diff --git a/old/src/PointToolsBundle/Event/UsersRenamedEvent.php b/old/src/PointToolsBundle/Event/UsersRenamedEvent.php deleted file mode 100644 index 64f45fd..0000000 --- a/old/src/PointToolsBundle/Event/UsersRenamedEvent.php +++ /dev/null @@ -1,37 +0,0 @@ -renames = $renames; - } - - /** - * @return UserRenameEvent[] - */ - public function getRenames(): array - { - return $this->renames; - } -} \ No newline at end of file diff --git a/src/Event/UserSubscribersUpdatedEvent.php b/src/Event/UserSubscribersUpdatedEvent.php new file mode 100644 index 0000000..dbdb55f --- /dev/null +++ b/src/Event/UserSubscribersUpdatedEvent.php @@ -0,0 +1,25 @@ +