params) || !isset($this->params[$this->field])) { return true; } if ($this->type !== self::MIN && $this->params[$this->field] < $this->value) { return $this->addError('The ' . $this->field . ' cannot be less than the default value.'); } if ($this->type !== self::MAX && $this->params[$this->field] > $this->value) { return $this->addError('The ' . $this->field . ' cannot be greater than the default value.'); } return true; } }