| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 1 | public static function invalidMessageObject($message) |
|
| 18 | { |
||
| 19 | 1 | $type = is_object($message) ? get_class($message) : gettype($message); |
|
| 20 | |||
| 21 | 1 | return new static( |
|
| 22 | 1 | 'Notification was not sent. The message should be a instance of `'.SnsMessage::class."` and a `{$type}` was given." |
|
| 23 | ); |
||
| 26 |