public function setMessages(array $messages)
    {
        foreach ($messages as $key => $message) {
            $this->setMessage($message, $key);
        }
        return $this;
    }
public function setMessages(array $messages)
    {
        foreach ($messages as $key => $message) {
            $this->setMessage($message, $key);
        }
        return $this;
    }
public function setMessages ( array $ messages ) { foreach ( $ messages as $ key => $ message ) { $ this -> setMessage ( $ message , $ key ) ; } return $ this ; }
Sets validation failure message templates given as an array, where the array keys are the message keys,
and the array values are the message template strings.

@param  array $messages
@return Zend_Validate_Abstract
Sets validation failure message templates given as an array where the array keys are the message keys and the array values are the message template strings .