1 | <?php |
||
21 | class Manager |
||
22 | { |
||
23 | /** |
||
24 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
25 | */ |
||
26 | protected $notifications; |
||
27 | |||
28 | /** |
||
29 | * Manager constructor. |
||
30 | */ |
||
31 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * Retrieve registered notifications. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getNotifications() |
||
45 | |||
46 | /** |
||
47 | * Register notification. |
||
48 | * |
||
49 | * @param \Jgut\Tify\Notification\AbstractNotification $notification |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function addNotification(AbstractNotification $notification) |
||
59 | |||
60 | /** |
||
61 | * Clear list of notifications. |
||
62 | */ |
||
63 | public function clearNotifications() |
||
69 | |||
70 | /** |
||
71 | * Push notifications. |
||
72 | * |
||
73 | * @return \Jgut\Tify\Result[] |
||
74 | */ |
||
75 | public function push() |
||
89 | |||
90 | /** |
||
91 | * Get feedback from service. |
||
92 | * |
||
93 | * @param \Jgut\Tify\Service\AbstractService $service |
||
94 | * |
||
95 | * @throws \Jgut\Tify\Exception\ServiceException |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function feedback(AbstractService $service) |
||
107 | } |
||
108 |