| 1 | <?php |
||
| 9 | class CouldNotSendNotification extends Exception |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \SemyonChetvertnyh\ApnNotificationChannel\ApnsResponseCollection|\Pushok\ApnsResponseInterface[] |
||
| 13 | */ |
||
| 14 | protected $responses; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create an instance of exception attaching responses. |
||
| 18 | * |
||
| 19 | * @param \SemyonChetvertnyh\ApnNotificationChannel\ApnsResponseCollection|\Pushok\ApnsResponseInterface[] $responses |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public static function withUnsuccessful(ApnsResponseCollection $responses) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Attach the responses. |
||
| 36 | * |
||
| 37 | * @param \SemyonChetvertnyh\ApnNotificationChannel\ApnsResponseCollection|\Pushok\ApnsResponseInterface[] $responses |
||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | protected function setResponses(ApnsResponseCollection $responses) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the responses collection. |
||
| 49 | * |
||
| 50 | * @return \SemyonChetvertnyh\ApnNotificationChannel\ApnsResponseCollection|\Pushok\ApnsResponseInterface[] |
||
| 51 | */ |
||
| 52 | public function getResponses() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get a first response. |
||
| 59 | * |
||
| 60 | * @return \Pushok\ApnsResponseInterface |
||
| 61 | * @deprecated Use getResponses() instead. |
||
| 62 | */ |
||
| 63 | public function getResponse() |
||
| 67 | } |
||
| 68 |