public function Braintree_Error_ValidationErrorCollection::__toString in Commerce Braintree 7
@ignore
File
- braintree_php/
lib/ Braintree/ Error/ ValidationErrorCollection.php, line 106
Class
- Braintree_Error_ValidationErrorCollection
- collection of errors enumerating all validation errors for a given request
Code
public function __toString() {
$output = array();
// TODO: implement scope
if (!empty($this->_errors)) {
$output[] = $this
->_inspect($this->_errors);
}
if (!empty($this->_nested)) {
foreach ($this->_nested as $key => $values) {
$output[] = $this
->_inspect($this->_nested);
}
}
return join(', ', $output);
}