| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace RuleCom\Notifier; |
||
| 15 | public function send($notification) |
||
| 16 | { |
||
| 17 | $channelNames = $notification->via(); |
||
| 18 | |||
| 19 | foreach ($channelNames as $name) { |
||
| 20 | $channel = $this->getChannel($name, $notification); |
||
| 21 | |||
| 22 | try { |
||
| 23 | $channel->dispatch(); |
||
| 24 | } catch (Exception $e) { |
||
| 25 | throw new NotificationFailed($e->getMessage()); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 49 |