code/libraries/joomlatools/library/user/session/container/message.php
public function set($type, $messages)
    {
        foreach((array) $messages as $message) {
            parent::set($type, $message);
        }

        return $this;
    }
public function set($type, $messages)
    {
        foreach((array) $messages as $message) {
            parent::set($type, $message);
        }

        return $this;
    }
public function set ( $ type , $ messages ) { foreach ( ( array ) $ messages as $ message ) { parent :: set ( $ type , $ message ) ; } return $ this ; }
Set current flash messages for a given type.

@param string       $type    Message category type.
@param string|array $messages
@return KUserSessionContainerMessage
Set current flash messages for a given type .