src/ministruts/Request.php
public function setActionMessage($key, $message) {
        if (!isset($message)) {
            unset($this->attributes[ACTION_MESSAGES_KEY][$key]);
        }
        elseif (is_string($message)) {
            $this->attributes[ACTION_MESSAGES_KEY][$key] = $message;
        }
        else throw new IllegalTypeException('Illegal type of parameter $message: '.gettype($message));
    }
public function setActionMessage($key, $message) {
        if (!isset($message)) {
            unset($this->attributes[ACTION_MESSAGES_KEY][$key]);
        }
        elseif (is_string($message)) {
            $this->attributes[ACTION_MESSAGES_KEY][$key] = $message;
        }
        else throw new IllegalTypeException('Illegal type of parameter $message: '.gettype($message));
    }
public function setActionMessage ( $ key , $ message ) { if ( ! isset ( $ message ) ) { unset ( $ this -> attributes [ ACTION_MESSAGES_KEY ] [ $ key ] ) ; } elseif ( is_string ( $ message ) ) { $ this -> attributes [ ACTION_MESSAGES_KEY ] [ $ key ] = $ message ; } else throw new IllegalTypeException ( 'Illegal type of parameter $message: ' . gettype ( $ message ) ) ; }
Store or delete an ActionMessage for the specified key.

@param  string $key     - message key
@param  string $message - message; if NULL the message for the specified key is deleted
(an ActionError with the same key is not deleted)
Store or delete an ActionMessage for the specified key .