@@ 67-80 (lines=14) @@ | ||
64 | return $instance; |
|
65 | } |
|
66 | ||
67 | public function __toString() |
|
68 | { |
|
69 | $display = [ |
|
70 | 'amount', 'reason', 'status', |
|
71 | 'replyByDate', 'receivedDate', 'currencyIsoCode' |
|
72 | ]; |
|
73 | ||
74 | $displayAttributes = []; |
|
75 | foreach ($display AS $attrib) { |
|
76 | $displayAttributes[$attrib] = $this->$attrib; |
|
77 | } |
|
78 | return __CLASS__ . '[' . |
|
79 | Util::attributesToString($displayAttributes) .']'; |
|
80 | } |
|
81 | } |
|
82 | class_alias('Braintree\Dispute', 'Braintree_Dispute'); |
|
83 |
@@ 404-418 (lines=15) @@ | ||
401 | * returns a string representation of the transaction |
|
402 | * @return string |
|
403 | */ |
|
404 | public function __toString() |
|
405 | { |
|
406 | // array of attributes to print |
|
407 | $display = [ |
|
408 | 'id', 'type', 'amount', 'status', |
|
409 | 'createdAt', 'creditCardDetails', 'customerDetails' |
|
410 | ]; |
|
411 | ||
412 | $displayAttributes = []; |
|
413 | foreach ($display AS $attrib) { |
|
414 | $displayAttributes[$attrib] = $this->$attrib; |
|
415 | } |
|
416 | return __CLASS__ . '[' . |
|
417 | Util::attributesToString($displayAttributes) .']'; |
|
418 | } |
|
419 | ||
420 | public function isEqual($otherTx) |
|
421 | { |