| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct(string $message = '') |
||
| 18 | { |
||
| 19 | if ($message === '') { |
||
| 20 | if (defined('static::DEFAULT_MESSAGE')) { |
||
| 21 | $message = static::DEFAULT_MESSAGE; |
||
|
1 ignored issue
–
show
|
|||
| 22 | } else { |
||
| 23 | $message = 'A message with the wrong version was received.'; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | parent::__construct($message); |
||
| 28 | } |
||
| 30 |