protected function getSuggestedMessageTemplate($name, $withLabel)
    {
        $noLabelMessage = is_string($name) && isset($this->errorMessages[$name]) ? $this->errorMessages[$name] : null;
        if ($withLabel) {
            return is_string($name) && isset($this->labeledErrorMessages[$name]) ?
                $this->labeledErrorMessages[$name] :
                $noLabelMessage;
        }

        return $noLabelMessage;
    }
protected function getSuggestedMessageTemplate($name, $withLabel)
    {
        $noLabelMessage = is_string($name) && isset($this->errorMessages[$name]) ? $this->errorMessages[$name] : null;
        if ($withLabel) {
            return is_string($name) && isset($this->labeledErrorMessages[$name]) ?
                $this->labeledErrorMessages[$name] :
                $noLabelMessage;
        }

        return $noLabelMessage;
    }
protected function getSuggestedMessageTemplate ( $ name , $ withLabel ) { $ noLabelMessage = is_string ( $ name ) && isset ( $ this -> errorMessages [ $ name ] ) ? $ this -> errorMessages [ $ name ] : null ; if ( $ withLabel ) { return is_string ( $ name ) && isset ( $ this -> labeledErrorMessages [ $ name ] ) ? $ this -> labeledErrorMessages [ $ name ] : $ noLabelMessage ; } return $ noLabelMessage ; }
Get the error message saved in the registry for a rule, where the message
is with or without a the label

@param string $name name of the rule
@param bool $withLabel

@return string|NULL
Get the error message saved in the registry for a rule where the message is with or without a the label