public function chooseTemplate() { if (!$this->getParam('minValue')) { return static::GREATER; } elseif (!$this->getParam('maxValue')) { return static::LOWER; } return static::BOTH; }