rule->isValid() !== false) { return true; } /** * set status as invalid */ $this->setIsValid(self::STATUS_INVALID); /** * * set error message */ $this->setErrorMessage($this->rule->getMessage()); /** * * throw error if is enabled */ if($this->isThrowErrorEnabled()) { throw new \Exception($this->getErrorMessage()); } /** * * return valid status */ return $this->isValid(); } }