1 | <?php |
||
10 | class PagerDutyChannel |
||
11 | { |
||
12 | /** |
||
13 | * @var Client |
||
14 | */ |
||
15 | protected $client; |
||
16 | |||
17 | 42 | public function __construct(Client $client) |
|
21 | |||
22 | /** |
||
23 | * Send the given notification. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @param \Illuminate\Notifications\Notification $notification |
||
27 | * |
||
28 | * @throws \NotificationChannels\PagerDuty\Exceptions\CouldNotSendNotification |
||
29 | */ |
||
30 | 42 | public function send($notifiable, Notification $notification) |
|
50 | |||
51 | /** |
||
52 | * @param \Psr\Http\Message\ResponseInterface $response |
||
53 | * |
||
54 | * @throws ApiError |
||
55 | */ |
||
56 | 30 | public function handleResponse($response) |
|
71 | } |
||
72 |