Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
46 | 1 | public static function unsupportedRecipient(ChannelInterface $channel, Message $message, $recipient) |
|
47 | { |
||
48 | 1 | return new self( |
|
49 | 1 | sprintf( |
|
50 | 1 | 'The recipient "%s" is not supported by channel "%s" for message "%s".', |
|
51 | 1 | is_object($recipient) ? get_class($recipient) : gettype($recipient), |
|
52 | 1 | get_class($channel), |
|
53 | 1 | $message->getId() |
|
54 | ) |
||
55 | ); |
||
56 | } |
||
57 | } |
||
58 |