| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php /** @noinspection PhpUndefinedFieldInspection */ |
||
| 27 | 1 | public function __construct($overwrites = []) |
|
| 28 | {
|
||
| 29 | $rules = [ |
||
| 30 | /* |
||
| 31 | * 2.2 ABNF Definition of ABNF - char-val |
||
| 32 | */ |
||
| 33 | 1 | 'quoted_string' => s($this->DQUOTE, star(c(range(0x20, 0x21), range(0x23, 0x7E))), $this->DQUOTE), |
|
|
|
|||
| 34 | 1 | 'case_sensitive_string' => s('%s', $this->quoted_string),
|
|
| 35 | 1 | 'case_insensitive_string' => s(opt('%i'), $this->quoted_string),
|
|
| 36 | 1 | 'char_val' => c($this->case_insensitive_string, $this->case_sensitive_string), |
|
| 37 | ]; |
||
| 38 | |||
| 39 | 1 | parent::__construct(array_merge($rules, $overwrites)); |
|
| 40 | } |
||
| 41 | } |