/** * @return array */ public function getParameters() { $params = []; if (is_array($v = $this->value->getValue()) && $this->value->getOperator() === 'BETWEEN') { foreach ($v as $index => $value) { $params[$this->value->getParameterKey($index)] = $value; } } elseif ($this->value->getOperator() === 'IS') { // conitnue... } elseif ($this->value->getOperator() === 'INSTANCE OF') { // conitnue... } else { $params[$this->value->getParameterKey()] = $this->value->getValue(); } return $params; }