UsBankAccountDetails.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Braintree\Transaction;
  3. use Braintree\Instance;
  4. use Braintree\AchMandate;
  5. /**
  6. * US Bank Account details from a transaction
  7. * creates an instance of UsbankAccountDetails
  8. *
  9. * @package Braintree
  10. * @subpackage Transaction
  11. *
  12. * @property-read string $token
  13. * @property-read string $imageUrl
  14. * @property-read string $routingNumber
  15. * @property-read string $accountType
  16. * @property-read string $accountHolderName
  17. * @property-read string $last4
  18. * @property-read string $bankName
  19. * @property-read string $achMandate
  20. */
  21. class UsBankAccountDetails extends Instance
  22. {
  23. protected $_attributes = [];
  24. /**
  25. * @ignore
  26. */
  27. public function __construct($attributes)
  28. {
  29. parent::__construct($attributes);
  30. $achMandate = isset($attributes['achMandate']) ?
  31. AchMandate::factory($attributes['achMandate']) :
  32. null;
  33. $this->achMandate = $achMandate;
  34. }
  35. }
  36. class_alias('Braintree\Transaction\UsBankAccountDetails', 'Braintree_Transaction_UsBankAccountDetails');