public function Braintree_Error_ValidationErrorCollection::deepAll in Commerce Braintree 7
File
- braintree_php/
lib/ Braintree/ Error/ ValidationErrorCollection.php, line 46
Class
- Braintree_Error_ValidationErrorCollection
- collection of errors enumerating all validation errors for a given request
Code
public function deepAll() {
$validationErrors = array_merge(array(), $this->_errors);
foreach ($this->_nested as $nestedErrors) {
$validationErrors = array_merge($validationErrors, $nestedErrors
->deepAll());
}
return $validationErrors;
}