removed code examples from validation/messages class.

This commit is contained in:
Taylor Otwell 2011-09-06 22:28:28 -05:00
parent 5ee1d8db57
commit 16716097c6
1 changed files with 0 additions and 34 deletions

View File

@ -26,11 +26,6 @@ public function __construct($messages = array())
*
* Duplicate messages will not be added.
*
* <code>
* // Add an error message for the "email" key
* $messages->add('email', 'The e-mail address is invalid.');
* </code>
*
* @param string $key
* @param string $message
* @return void
@ -46,11 +41,6 @@ public function add($key, $message)
/**
* Determine if messages exist for a given key.
*
* <code>
* // Determine if there are any messages for the "email" key
* $has = $messages->has('email');
* </code>
*
* @param string $key
* @return bool
*/
@ -64,14 +54,6 @@ public function has($key)
*
* Optionally, a format may be specified for the returned message.
*
* <code>
* // Get the first message for the "email" key
* $message = $messages->first('email');
*
* // Get the first message for the "email" key wrapped in <p> tags
* $message = $messages->first('email', '<p>:message</p>');
* </code>
*
* @param string $key
* @param string $format
* @return string
@ -84,14 +66,6 @@ public function first($key, $format = ':message')
/**
* Get all of the messages for a key.
*
* <code>
* // Get all of the messages for the "email" key
* $message = $messages->get('email');
*
* // Get all of the messages for the "email" key wrapped in <p> tags
* $message = $messages->get('email', '<p>:message</p>');
* </code>
*
* @param string $key
* @param string $format
* @return array
@ -106,14 +80,6 @@ public function get($key = null, $format = ':message')
/**
* Get all of the messages for every key.
*
* <code>
* // Get all of the messages for every key
* $message = $messages->all();
*
* // Get all of the messages for every key wrapped in <p> tags
* $message = $messages->all('<p>:message</p>');
* </code>
*
* @param string $format
* @return array
*/