public function message($ruleOrMessage, $message = null)
    {
        if (1 === func_num_args()) {
            $rule = $this->lastRule;
            $message = $ruleOrMessage;
        } else {
            $rule = $ruleOrMessage;
        }

        $this->options['messages'][$this->lastKey][$rule] = $message;

        return $this;
    }
public function message($ruleOrMessage, $message = null)
    {
        if (1 === func_num_args()) {
            $rule = $this->lastRule;
            $message = $ruleOrMessage;
        } else {
            $rule = $ruleOrMessage;
        }

        $this->options['messages'][$this->lastKey][$rule] = $message;

        return $this;
    }
public function message ( $ ruleOrMessage , $ message = null ) { if ( 1 === func_num_args ( ) ) { $ rule = $ this -> lastRule ; $ message = $ ruleOrMessage ; } else { $ rule = $ ruleOrMessage ; } $ this -> options [ 'messages' ] [ $ this -> lastKey ] [ $ rule ] = $ message ; return $ this ; }
Set rule message for current field

@param string $ruleOrMessage
@param string|null $message
@return $this
Set rule message for current field