public function setMessages($rule, $messageWithoutLabel = null, $messageWithLabel = null)
    {
        if ($messageWithoutLabel) {
            $this->errorMessages[$rule] = $messageWithoutLabel;
        }
        if ($messageWithLabel) {
            $this->labeledErrorMessages[$rule] = $messageWithLabel;
        }

        return $this;
    }
public function setMessages($rule, $messageWithoutLabel = null, $messageWithLabel = null)
    {
        if ($messageWithoutLabel) {
            $this->errorMessages[$rule] = $messageWithoutLabel;
        }
        if ($messageWithLabel) {
            $this->labeledErrorMessages[$rule] = $messageWithLabel;
        }

        return $this;
    }
public function setMessages ( $ rule , $ messageWithoutLabel = null , $ messageWithLabel = null ) { if ( $ messageWithoutLabel ) { $ this -> errorMessages [ $ rule ] = $ messageWithoutLabel ; } if ( $ messageWithLabel ) { $ this -> labeledErrorMessages [ $ rule ] = $ messageWithLabel ; } return $ this ; }
Set default error message for a rule

@param string $rule
@param string|null $messageWithoutLabel
@param string|null $messageWithLabel

@return $this
Set default error message for a rule