public function message($message = '', $type = 'info')
    {
        if (is_array($message)) {
            foreach ($message as $issue) {
                $this->addMessage($issue, $type);
            }

            return $this;
        }

        return $this->addMessage($message, $type);
    }
public function message($message = '', $type = 'info')
    {
        if (is_array($message)) {
            foreach ($message as $issue) {
                $this->addMessage($issue, $type);
            }

            return $this;
        }

        return $this->addMessage($message, $type);
    }
public function message ( $ message = '' , $ type = 'info' ) { if ( is_array ( $ message ) ) { foreach ( $ message as $ issue ) { $ this -> addMessage ( $ issue , $ type ) ; } return $ this ; } return $ this -> addMessage ( $ message , $ type ) ; }
Base method for adding messages to flash.

@param string $message - message text
@param string $type    - message type: success, info, warning, error

@return Engine $this
Base method for adding messages to flash .