public function getValidatorMessages()
    {
        $messages = [];
        
        foreach ($this->owner->getValidatorRules() as $rule) {
            
            if ($rule->hasMessage()) {
                $messages[$rule->getType()] = $rule->getMessage();
            }
            
        }
        
        return $messages;
    }
public function getValidatorMessages()
    {
        $messages = [];
        
        foreach ($this->owner->getValidatorRules() as $rule) {
            
            if ($rule->hasMessage()) {
                $messages[$rule->getType()] = $rule->getMessage();
            }
            
        }
        
        return $messages;
    }
public function getValidatorMessages ( ) { $ messages = [ ] ; foreach ( $ this -> owner -> getValidatorRules ( ) as $ rule ) { if ( $ rule -> hasMessage ( ) ) { $ messages [ $ rule -> getType ( ) ] = $ rule -> getMessage ( ) ; } } return $ messages ; }
Answers an array of the validator messages for the extended field.

@return array
Answers an array of the validator messages for the extended field .