public function getModelValidationMessages()
    {
        $optionsMessages = $this->getOption('messages');

        //if the 'rules' option was provided for this model, it takes precedent
        if (is_array($optionsMessages)) {
            return $optionsMessages;
        }

        //otherwise look for the messages as a static property on the model
        return $rules = $this->getModelStaticValidationMessages() ?: array();
    }
public function getModelValidationMessages()
    {
        $optionsMessages = $this->getOption('messages');

        //if the 'rules' option was provided for this model, it takes precedent
        if (is_array($optionsMessages)) {
            return $optionsMessages;
        }

        //otherwise look for the messages as a static property on the model
        return $rules = $this->getModelStaticValidationMessages() ?: array();
    }
public function getModelValidationMessages ( ) { $ optionsMessages = $ this -> getOption ( 'messages' ) ; //if the 'rules' option was provided for this model, it takes precedent if ( is_array ( $ optionsMessages ) ) { return $ optionsMessages ; } //otherwise look for the messages as a static property on the model return $ rules = $ this -> getModelStaticValidationMessages ( ) ? : array ( ) ; }
Gets the validation messages for this model.

@return array
Gets the validation messages for this model .