| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class MultiDomainField extends BaseField |
||
| 18 | { |
||
| 19 | /** @var string Separator. */ |
||
| 20 | protected $separator = ','; |
||
| 21 | |||
| 22 | /** {@inheritdoc} */ |
||
| 23 | public function getValue(): array |
||
| 24 | { |
||
| 25 | $value = []; |
||
| 26 | if (!empty(parent::getValue()) && \in_array($this->operator, ['e', 'n'])) { |
||
| 27 | $value = explode($this->separator, trim(parent::getValue(), ',')); |
||
| 28 | } |
||
| 29 | return $value; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** {@inheritdoc} */ |
||
| 33 | public function operatorE(): bool |
||
| 36 | } |
||
| 37 | |||
| 38 | /** {@inheritdoc} */ |
||
| 39 | public function operatorN(): bool |
||
| 42 | } |
||
| 43 | |||
| 44 | /** {@inheritdoc} */ |
||
| 45 | public function operatorC(): bool |
||
| 50 |