| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace nyx\notify\interfaces; |
||
| 12 | interface Dispatcher |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Sends the given Notification to the given entities. |
||
| 16 | * |
||
| 17 | * @param array|Notifiable $notifiables The entities which shall receive the Notification (single Notifiable |
||
| 18 | * or an iterable collection thereof). |
||
| 19 | * @param Notification $notification The Notification that shall be sent. |
||
| 20 | */ |
||
| 21 | public function send($notifiables, Notification $notification); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Sends the given Notification synchronously to the given entities. |
||
| 25 | * |
||
| 26 | * @param array|Notifiable $notifiables The entities which shall receive the Notification (single Notifiable |
||
| 27 | * or an iterable collection thereof). |
||
| 28 | * @param Notification $notification The Notification that shall be sent. |
||
| 29 | */ |
||
| 30 | public function sendNow($notifiables, Notification $notification); |
||
| 31 | } |
||
| 32 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.