| 1 | <?php |
||
| 10 | class PagerDutyChannel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Client |
||
| 14 | */ |
||
| 15 | protected $client; |
||
| 16 | |||
| 17 | 14 | 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 | 14 | public function send($notifiable, Notification $notification) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param $response |
||
| 53 | * |
||
| 54 | * @throws ApiError |
||
| 55 | */ |
||
| 56 | 10 | public function handleResponse($response) |
|
| 71 | } |
||
| 72 |