public function setMessages($messages)
	{
		if (!is_array($messages))
		{
			throw new InvalidArgumentException(sprintf(
				'Messages must be an array. Type of "%s" passed.',
				gettype($messages)
			));
		}

		$this->_messages = $messages;

		return $this;
	}
public function setMessages($messages)
	{
		if (!is_array($messages))
		{
			throw new InvalidArgumentException(sprintf(
				'Messages must be an array. Type of "%s" passed.',
				gettype($messages)
			));
		}

		$this->_messages = $messages;

		return $this;
	}
public function setMessages ( $ messages ) { if ( ! is_array ( $ messages ) ) { throw new InvalidArgumentException ( sprintf ( 'Messages must be an array. Type of "%s" passed.' , gettype ( $ messages ) ) ) ; } $ this -> _messages = $ messages ; return $ this ; }
Set the list of messages

@param   mixed  $messages
@return  object
Set the list of messages