| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | private function __construct(string $name, string $query) |
||
| 24 | { |
||
| 25 | if ($query === '' || strlen($query) !== strcspn($query, "\r\n")) { |
||
| 26 | throw new \InvalidArgumentException('CR and LF are not allowed in quoted strings'); |
||
| 27 | } |
||
| 28 | |||
| 29 | $this->name = $name; |
||
| 30 | $this->query = $query; |
||
| 31 | } |
||
| 32 | |||
| 71 | } |