src/Web/Result.php
protected function addMessages($method, array $messages)
    {
        // If there was exactly 1 message, it wasn't put in an array of messages.
        if (array_key_exists('code', $messages)) {
            $messages = array($messages);
        }
        foreach ($messages as $message) {
            call_user_func(array($this, $method), $message);
        }
        return $this;
    }
protected function addMessages($method, array $messages)
    {
        // If there was exactly 1 message, it wasn't put in an array of messages.
        if (array_key_exists('code', $messages)) {
            $messages = array($messages);
        }
        foreach ($messages as $message) {
            call_user_func(array($this, $method), $message);
        }
        return $this;
    }
protected function addMessages ( $ method , array $ messages ) { // If there was exactly 1 message, it wasn't put in an array of messages. if ( array_key_exists ( 'code' , $ messages ) ) { $ messages = array ( $ messages ) ; } foreach ( $ messages as $ message ) { call_user_func ( array ( $ this , $ method ) , $ message ) ; } return $ this ; }
Adds multiple warnings to the list of warnings.

A single warning may be passed in as a 1-dimensional array.

@param string $method
@param array $messages

@return $this
Adds multiple warnings to the list of warnings .