| Total Complexity | 3 | 
| Total Lines | 18 | 
| Duplicated Lines | 0 % | 
| Coverage | 87.5% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 6 | abstract class CompareFilter implements FilterInterface  | 
            ||
| 7 | { | 
            ||
| 8 | private $field;  | 
            ||
| 9 | private $value;  | 
            ||
| 10 | |||
| 11 | 9 | public function __construct(string $field, $value)  | 
            |
| 12 |     { | 
            ||
| 13 | 9 |         if (!is_scalar($value)) { | 
            |
| 14 |             throw new \InvalidArgumentException('Value should be scalar'); | 
            ||
| 15 | }  | 
            ||
| 16 | |||
| 17 | 9 | $this->field = $field;  | 
            |
| 18 | 9 | $this->value = $value;  | 
            |
| 19 | 9 | }  | 
            |
| 20 | |||
| 21 | 18 | public function toArray(): array  | 
            |
| 24 | }  | 
            ||
| 25 | }  | 
            ||
| 26 |