EuropeBankAccount.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Braintree;
  3. /**
  4. * Braintree EuropeBankAccount module
  5. * Creates and manages Braintree Europe Bank Accounts
  6. *
  7. * <b>== More information ==</b>
  8. *
  9. * See {@link https://developers.braintreepayments.com/javascript+php}<br />
  10. *
  11. * @package Braintree
  12. * @category Resources
  13. *
  14. * @property-read string $account-holder-name
  15. * @property-read string $bic
  16. * @property-read string $customerId
  17. * @property-read string $default
  18. * @property-read string $image-url
  19. * @property-read string $mandate-reference-number
  20. * @property-read string $masked-iban
  21. * @property-read string $token
  22. */
  23. class EuropeBankAccount extends Base
  24. {
  25. /* instance methods */
  26. /**
  27. * returns false if default is null or false
  28. *
  29. * @return boolean
  30. */
  31. public function isDefault()
  32. {
  33. return $this->default;
  34. }
  35. /**
  36. * factory method: returns an instance of EuropeBankAccount
  37. * to the requesting method, with populated properties
  38. *
  39. * @ignore
  40. * @return EuropeBankAccount
  41. */
  42. public static function factory($attributes)
  43. {
  44. $defaultAttributes = [
  45. ];
  46. $instance = new self();
  47. $instance->_initialize(array_merge($defaultAttributes, $attributes));
  48. return $instance;
  49. }
  50. /**
  51. * sets instance properties from an array of values
  52. *
  53. * @access protected
  54. * @param array $europeBankAccountAttribs array of EuropeBankAccount properties
  55. * @return void
  56. */
  57. protected function _initialize($europeBankAccountAttribs)
  58. {
  59. $this->_attributes = $europeBankAccountAttribs;
  60. }
  61. }
  62. class_alias('Braintree\EuropeBankAccount', 'Braintree_EuropeBankAccount');