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