public function flashMessage(
        $message,
        $type = FlashMessage::TYPE_SUCCESS,
        $method = FlashMessage::METHOD_APPEND
    ) {
        $message = new FlashMessage($message, $type, $method);
        $this->register($message);

        return $message;
    }
public function flashMessage(
        $message,
        $type = FlashMessage::TYPE_SUCCESS,
        $method = FlashMessage::METHOD_APPEND
    ) {
        $message = new FlashMessage($message, $type, $method);
        $this->register($message);

        return $message;
    }
public function flashMessage ( $ message , $ type = FlashMessage :: TYPE_SUCCESS , $ method = FlashMessage :: METHOD_APPEND ) { $ message = new FlashMessage ( $ message , $ type , $ method ) ; $ this -> register ( $ message ) ; return $ message ; }
Create a FlashMessage and register it to the queue

Convenience method to allow for a fluent interface

@var string $message
@param string $type
@param string $method
@return FlashMessage
Create a FlashMessage and register it to the queue