1 | <?php |
||
9 | class HipChatChannel |
||
10 | { |
||
11 | /** |
||
12 | * The HipChat client instance. |
||
13 | * |
||
14 | * @var \NotificationChannels\HipChat\HipChat |
||
15 | */ |
||
16 | protected $hipChat; |
||
17 | |||
18 | /** |
||
19 | * @param \NotificationChannels\HipChat\HipChat |
||
20 | */ |
||
21 | public function __construct(HipChat $hipChat) |
||
25 | |||
26 | /** |
||
27 | * Send the given notification. |
||
28 | * |
||
29 | * @param mixed $notifiable |
||
30 | * @param \Illuminate\Notifications\Notification $notification |
||
31 | * |
||
32 | * @throws \NotificationChannels\HipChat\Exceptions\CouldNotSendNotification |
||
33 | */ |
||
34 | public function send($notifiable, Notification $notification) |
||
59 | |||
60 | /** |
||
61 | * Send the HipChat notification message. |
||
62 | * |
||
63 | * @param $to |
||
64 | * @param mixed $message |
||
65 | * @return \Psr\Http\Message\ResponseInterface |
||
66 | */ |
||
67 | protected function sendMessage($to, $message) |
||
73 | } |
||
74 |