AddOn.php 550 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Braintree;
  3. class AddOn extends Modification
  4. {
  5. /**
  6. *
  7. * @param array $attributes
  8. * @return AddOn
  9. */
  10. public static function factory($attributes)
  11. {
  12. $instance = new self();
  13. $instance->_initialize($attributes);
  14. return $instance;
  15. }
  16. /**
  17. * static methods redirecting to gateway
  18. *
  19. * @return AddOn[]
  20. */
  21. public static function all()
  22. {
  23. return Configuration::gateway()->addOn()->all();
  24. }
  25. }
  26. class_alias('Braintree\AddOn', 'Braintree_AddOn');