original_string: public function setMessages(array $messages)
      {
          foreach ($messages as $key => $message) {
              $this->setMessage($message, $key);
          }
          return $this;
      }
code: public function setMessages(array $messages)
      {
          foreach ($messages as $key => $message) {
              $this->setMessage($message, $key);
          }
          return $this;
      }
code_tokens: public function setMessages ( array $ messages ) { foreach ( $ messages as $ key => $ message ) { $ this -> setMessage ( $ message , $ key ) ; } return $ this ; }
docstring: 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
docstring_tokens: 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 .