| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 2 | public static function createOnException(ChannelInterface $channel, Delivery $delivery, Exception $previous) |
|
| 24 | { |
||
| 25 | 2 | return new self( |
|
| 26 | 2 | sprintf( |
|
| 27 | 'An error has occurred during the notification process of message "%s" for channel "%s".' |
||
| 28 | 2 | .' Exception : %s - %s', |
|
| 29 | 2 | $delivery->getMessage(), |
|
| 30 | 2 | get_class($channel), |
|
| 31 | 2 | get_class($previous), |
|
| 32 | 2 | $previous->getMessage() |
|
| 33 | ), |
||
| 34 | 2 | 0, |
|
| 35 | 2 | $previous |
|
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 58 |