implements Countable, ArrayAccess, Iterator, Traversable
Represents a group of validation messages
Phalcon\Validation\Message\Group constructor
Gets an attribute a message using the array syntax
print_r($messages[0]);
Sets an attribute using the array-syntax
$messages[0] = new Phalcon\Validation\Message('This is a message');
Checks if an index exists
var_dump(isset($message['database']));
Removes a message from the list
unset($message['database']);
Appends a message to the group
$messages->appendMessage(new Phalcon\Validation\Message('This is a message'));
Appends an array of messages to the group
$messages->appendMessages($messagesArray);
Filters the message group by field name
Returns the number of messages in the list
Rewinds the internal iterator
Returns the current message in the iterator
Returns the current position/key in the iterator
Moves the internal iteration pointer to the next position
Check if the current message in the iterator is valid
Magic __set_state helps to re-build messages variable when exporting
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Validation_Message_Group.html