You are here

public function Braintree_Error_ValidationErrorCollection::deepSize in Commerce Braintree 7

File

braintree_php/lib/Braintree/Error/ValidationErrorCollection.php, line 56

Class

Braintree_Error_ValidationErrorCollection
collection of errors enumerating all validation errors for a given request

Code

public function deepSize() {
  $total = sizeof($this->_errors);
  foreach ($this->_nested as $_nestedErrors) {
    $total = $total + $_nestedErrors
      ->deepSize();
  }
  return $total;
}