| Total Complexity | 7 | 
| Total Lines | 35 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 5 | class CouldNotSendNotification extends \Exception | ||
| 6 | { | ||
| 7 | public static function serviceRespondedWithAnError(\Exception $exception) | ||
| 8 |     { | ||
| 9 |         return new static("NetGsm service responded with an error '{$exception->getCode()}: {$exception->getMessage()}'"); | ||
| 10 | } | ||
| 11 | |||
| 12 | public static function emptyRecipients() | ||
| 13 |     { | ||
| 14 |         return new static('In order to send notification via NetGsm you need to add some recipients.'); | ||
| 15 | } | ||
| 16 | |||
| 17 | public static function invalidResponse() | ||
| 18 |     { | ||
| 19 |         return new static('Invalid response from NetGSM server.'); | ||
| 20 | } | ||
| 21 | |||
| 22 | public static function invalidMessageContent() | ||
| 25 | } | ||
| 26 | |||
| 27 | public static function invalidHeader() | ||
| 30 | } | ||
| 31 | |||
| 32 | public static function invalidRequest() | ||
| 35 | } | ||
| 36 | |||
| 37 | public static function unknownError() | ||
| 42 |