1 | <?php |
||
11 | class GitterChannel |
||
12 | { |
||
13 | protected $baseUrl = 'https://api.gitter.im/v1/rooms'; |
||
14 | |||
15 | /** @var \GuzzleHttp\Client */ |
||
16 | protected $httpClient; |
||
17 | |||
18 | 3 | public function __construct(HttpClient $client) |
|
22 | |||
23 | /** |
||
24 | * Send the given notification. |
||
25 | * |
||
26 | * @param mixed $notifiable |
||
27 | * @param \Illuminate\Notifications\Notification $notification |
||
28 | * |
||
29 | * @throws \NotificationChannels\Gitter\Exceptions\CouldNotSendNotification |
||
30 | */ |
||
31 | 3 | public function send($notifiable, Notification $notification) |
|
42 | |||
43 | /** |
||
44 | * @param GitterMessage $message |
||
45 | * |
||
46 | * @throws CouldNotSendNotification |
||
47 | */ |
||
48 | 3 | protected function sendMessage(GitterMessage $message) |
|
73 | } |
||
74 |