From a76939066b01b9dd39ff44a8d3aa3165dc7b3eaf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 16 Sep 2014 16:35:43 +0200 Subject: Add more events and notifications for tasks --- app/Event/BaseNotificationListener.php | 11 +++++++++++ app/Event/CommentHistoryListener.php | 11 +++++++++++ app/Event/ProjectModificationDate.php | 11 +++++++++++ app/Event/SubtaskHistoryListener.php | 11 +++++++++++ app/Event/TaskHistoryListener.php | 11 +++++++++++ app/Event/WebhookListener.php | 11 +++++++++++ 6 files changed, 66 insertions(+) (limited to 'app/Event') diff --git a/app/Event/BaseNotificationListener.php b/app/Event/BaseNotificationListener.php index 6c1728cb..fdabaf57 100644 --- a/app/Event/BaseNotificationListener.php +++ b/app/Event/BaseNotificationListener.php @@ -51,6 +51,17 @@ abstract class BaseNotificationListener implements Listener $this->notification = $notification; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * diff --git a/app/Event/CommentHistoryListener.php b/app/Event/CommentHistoryListener.php index a89ecbae..e5e92b01 100644 --- a/app/Event/CommentHistoryListener.php +++ b/app/Event/CommentHistoryListener.php @@ -32,6 +32,17 @@ class CommentHistoryListener implements Listener $this->model = $model; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * diff --git a/app/Event/ProjectModificationDate.php b/app/Event/ProjectModificationDate.php index 8fbaee73..d0d1e846 100644 --- a/app/Event/ProjectModificationDate.php +++ b/app/Event/ProjectModificationDate.php @@ -34,6 +34,17 @@ class ProjectModificationDate implements Listener $this->project = $project; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * diff --git a/app/Event/SubtaskHistoryListener.php b/app/Event/SubtaskHistoryListener.php index e859828c..8cc7a7fd 100644 --- a/app/Event/SubtaskHistoryListener.php +++ b/app/Event/SubtaskHistoryListener.php @@ -32,6 +32,17 @@ class SubtaskHistoryListener implements Listener $this->model = $model; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * diff --git a/app/Event/TaskHistoryListener.php b/app/Event/TaskHistoryListener.php index c8a880e8..d963fa71 100644 --- a/app/Event/TaskHistoryListener.php +++ b/app/Event/TaskHistoryListener.php @@ -32,6 +32,17 @@ class TaskHistoryListener implements Listener $this->model = $model; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * diff --git a/app/Event/WebhookListener.php b/app/Event/WebhookListener.php index 4668b66e..c2f6d56a 100644 --- a/app/Event/WebhookListener.php +++ b/app/Event/WebhookListener.php @@ -42,6 +42,17 @@ class WebhookListener implements Listener $this->webhook = $webhook; } + /** + * Return class information + * + * @access public + * @return string + */ + public function __toString() + { + return get_called_class(); + } + /** * Execute the action * -- cgit v1.2.3