1 | <?php namespace RuleCom\Notifier; |
||
6 | class Notifier |
||
7 | { |
||
8 | /** |
||
9 | * Dispatches notifications for all given channels specified |
||
10 | * in the Via method on the notification object |
||
11 | * |
||
12 | * @param object $notification |
||
13 | * @throws NotificationFailed |
||
14 | */ |
||
15 | public function send($notification) |
||
29 | |||
30 | /** |
||
31 | * Get channel from notifications to{Channel} method |
||
32 | * |
||
33 | * @param string $name |
||
34 | * @param object $notification |
||
35 | * |
||
36 | * @return Channel |
||
37 | */ |
||
38 | private function getChannel($name, $notification) |
||
48 | } |
||
49 |