diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-23 14:50:59 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-23 14:50:59 -0400 |
commit | a823cc1d08535539f850711c0b9edb5b648f1960 (patch) | |
tree | 0988d0fd6dba3fe304efcf3fadc0b6f0f715fa67 /app/EventBuilder/BaseEventBuilder.php | |
parent | b6119e7dee84869a619dedccd9c80df4422a4f5b (diff) |
NotificationModel refactoring
Diffstat (limited to 'app/EventBuilder/BaseEventBuilder.php')
-rw-r--r-- | app/EventBuilder/BaseEventBuilder.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/app/EventBuilder/BaseEventBuilder.php b/app/EventBuilder/BaseEventBuilder.php index c677563e..5aa777a0 100644 --- a/app/EventBuilder/BaseEventBuilder.php +++ b/app/EventBuilder/BaseEventBuilder.php @@ -19,5 +19,26 @@ abstract class BaseEventBuilder extends Base * @access public * @return GenericEvent|null */ - abstract public function build(); + abstract public function buildEvent(); + + /** + * Get event title with author + * + * @access public + * @param string $author + * @param string $eventName + * @param array $eventData + * @return string + */ + abstract public function buildTitleWithAuthor($author, $eventName, array $eventData); + + /** + * Get event title without author + * + * @access public + * @param string $eventName + * @param array $eventData + * @return string + */ + abstract public function buildTitleWithoutAuthor($eventName, array $eventData); } |