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