1 | <?php |
||
7 | class CouldNotSendNotification extends \Exception |
||
8 | { |
||
9 | private $response; |
||
10 | |||
11 | /** |
||
12 | * CouldNotSendNotification constructor. |
||
13 | * @param Response $response |
||
14 | * @param string $message |
||
15 | * @param int|null $code |
||
16 | */ |
||
17 | 1 | public function __construct(Response $response, string $message, int $code = null) |
|
25 | |||
26 | /** |
||
27 | * @param Response $response |
||
28 | * @return CouldNotSendNotification |
||
29 | */ |
||
30 | 1 | public static function serviceRespondedWithAnError(Response $response) |
|
37 | |||
38 | /** |
||
39 | * @return Response |
||
40 | */ |
||
41 | public function getResponse() |
||
45 | } |
||
46 |