| 1 | <?php |
||
| 22 | $this->setParameters($parameters); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getType(): string |
||
| 26 | { |
||
| 27 | return 'regexp'; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function toArray(): array |
||
| 31 | { |
||
| 32 | $query = [ |
||
| 33 | 'value' => $this->regexpValue, |
||
| 34 | ]; |
||
| 35 | |||
| 36 | $output = [ |
||
| 37 | $this->field => $this->processArray($query), |
||
| 38 | ]; |
||
| 39 | |||
| 40 | return [$this->getType() => $output]; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |