Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
40 | public function __construct(Tag $tag, Query $query, string $charset = '') |
||
41 | { |
||
42 | if (strlen($this->charset) !== strcspn($charset, self::CHARSET_VALID)) { |
||
43 | throw new \InvalidArgumentException("Invalid charset"); |
||
44 | } |
||
45 | |||
46 | $this->tag = $tag; |
||
47 | $this->query = $query; |
||
48 | $this->charset = $charset; |
||
49 | } |
||
50 | |||
72 | } |