1 | <?php namespace nyx\notify; |
||
18 | class TransportManager extends \Illuminate\Support\Manager implements interfaces\Dispatcher |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritDoc} |
||
22 | */ |
||
23 | public function send($notifiables, interfaces\Notification $notification) |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | public function sendNow($notifiables, interfaces\Notification $notification) |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getDefaultDriver() : string |
||
69 | |||
70 | /** |
||
71 | * Determines whether the Notification should be sent at all, given the context. |
||
72 | * |
||
73 | * @param interfaces\Notifiable $notifiable The entity being notified. |
||
74 | * @param interfaces\Notification $notification The Notification being sent. |
||
75 | * @param interfaces\Transport $transport The Transport the Notification should be sent over. |
||
76 | * @return bool True when the Notification should be sent, false otherwise. |
||
77 | * @todo onBeforeSend event allowing listeners to prevent dispatching. |
||
78 | */ |
||
79 | protected function shouldSend(interfaces\Notifiable $notifiable, interfaces\Notification $notification, interfaces\Transport $transport) : bool |
||
87 | |||
88 | /** |
||
89 | * Enqueues the given Notification. |
||
90 | * |
||
91 | * @param mixed $notifiables The entities which shall receive the Notification. |
||
92 | * @param interfaces\Notification $notification The Notification to enqueue. |
||
93 | */ |
||
94 | protected function enqueue($notifiables, interfaces\Notification $notification) |
||
105 | |||
106 | /** |
||
107 | * {@inheritDoc} |
||
108 | */ |
||
109 | protected function createDriver($driver) |
||
123 | |||
124 | /** |
||
125 | * Creates a Mail Transport. |
||
126 | * |
||
127 | * @return transports\Mail |
||
128 | */ |
||
129 | protected function createMailDriver() : transports\Mail |
||
133 | |||
134 | /** |
||
135 | * Creates a Slack Transport. |
||
136 | * |
||
137 | * @return transports\Slack |
||
138 | */ |
||
139 | protected function createSlackDriver() : transports\Slack |
||
143 | } |
||
144 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.