| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class DiscordChannel |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \NotificationChannels\Discord\Discord |
||
| 11 | */ |
||
| 12 | protected $discord; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \NotificationChannels\Discord\Discord $discord |
||
| 16 | */ |
||
| 17 | 2 | public function __construct(Discord $discord) |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Send the given notification. |
||
| 24 | * |
||
| 25 | * @param mixed $notifiable |
||
| 26 | * @param \Illuminate\Notifications\Notification $notification |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | * |
||
| 30 | * @throws \NotificationChannels\Discord\Exceptions\CouldNotSendNotification |
||
| 31 | */ |
||
| 32 | 2 | public function send($notifiable, Notification $notification) |
|
| 55 |