| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class RegexSearchFilter implements SearchFilterInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected string $pattern; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * RegexSearchFilter constructor. |
||
| 15 | * |
||
| 16 | * @param string $pattern |
||
| 17 | */ |
||
| 18 | 1 | public function __construct(string $pattern) |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Return the search filter so that it can be used in a search query. |
||
| 25 | * |
||
| 26 | * @return array<string,string> |
||
| 27 | */ |
||
| 28 | 1 | public function toArray(): array |
|
| 35 | } |