original_string: public function setMessages($messages) {
  		foreach ($messages as $name => $message) {
  			$this->_messages[$name] = $message;
  		}
  	}
code: public function setMessages($messages) {
  		foreach ($messages as $name => $message) {
  			$this->_messages[$name] = $message;
  		}
  	}
code_tokens: public function setMessages ( $ messages ) { foreach ( $ messages as $ name => $ message ) { $ this -> _messages [ $ name ] = $ message ; } }
docstring: Adds user defined error messages.
  @param	array	$messages	An associative array with the error messages (with the validators as keys). Parameters are passed via `sprintf`, so you can use `%s` and other `sprintf` replacements. It is also possible to use a key like `salutation.required` (`[fieldname].[validator]`) to get a custom message for a specific form field.
docstring_tokens: Adds user defined error messages .