Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 3 | public function __construct(Tag $tag, Query $query, string $charset = '') |
|
36 | { |
||
37 | 3 | if (\strlen($charset) !== \strspn($charset, self::CHARSET_VALID)) { |
|
38 | 1 | throw new \InvalidArgumentException("Invalid charset"); |
|
39 | } |
||
40 | |||
41 | 2 | $this->tag = $tag; |
|
42 | 2 | $this->query = $query; |
|
43 | 2 | $this->charset = $charset; |
|
44 | 2 | } |
|
45 | |||
68 |