Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 13 | public function __construct(int ...$characters) |
|
32 | { |
||
33 | 13 | foreach ($characters as $character) { |
|
34 | 10 | if ($character > self::MAX_UNICODE_CHAR || $character < self::MIN_CHAR) { |
|
35 | 2 | throw new Exception\NonUnicodeCharacterException($character); |
|
36 | } |
||
37 | 8 | $this->characters[] = $character; |
|
38 | } |
||
83 |