You are here

public function Braintree_Error_ErrorCollection::shallowAll in Commerce Braintree 7

Returns the errors at the given nesting level (see forKey) in a single, flat array:

<code> $result = Braintree_Customer::create(...); $customerErrors = $result->errors->forKey('customer')->shallowAll(); </code>

File

braintree_php/lib/Braintree/Error/ErrorCollection.php, line 95

Class

Braintree_Error_ErrorCollection
Handles validation errors

Code

public function shallowAll() {
  return $this->_errors
    ->shallowAll();
}