Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | 5 | public function __construct(string $message = '', StringIterator $stringIterator = null) |
|
28 | { |
||
29 | 5 | if (null !== $stringIterator) { |
|
30 | 1 | $this->stringIterator = $stringIterator; |
|
31 | 1 | $message .= sprintf(' [Line no: %d]', $this->getLineNumber()); |
|
32 | } |
||
33 | |||
34 | 5 | parent::__construct($message); |
|
35 | 5 | } |
|
58 |