public function Braintree_Error_ErrorCollection::deepSize in Commerce Braintree 7
Returns the total number of validation errors at all levels of nesting. For example, if creating a customer with a credit card and a billing address, and each of the customer, credit card, and billing address has 1 error, this method will return 3.
Return value
int size
File
- braintree_php/
lib/ Braintree/ Error/ ErrorCollection.php, line 51
Class
- Braintree_Error_ErrorCollection
- Handles validation errors
Code
public function deepSize() {
$size = $this->_errors
->deepSize();
return $size;
}