BraintreeBase

Braintree PHP Library.

Defined (1)

The class is defined in the following location(s).

/includes/lib/Braintree/lib/Braintree/Base.php  
  1. abstract class Base 
  2. protected $_attributes = []; 
  3.  
  4. /** 
  5. * @ignore 
  6. * don't permit an explicit call of the constructor! 
  7. * (like $t = new Transaction()) 
  8. */ 
  9. protected function __construct() 
  10.  
  11. /** 
  12. * Disable cloning of objects 
  13. * @ignore 
  14. */ 
  15. protected function __clone() 
  16.  
  17. /** 
  18. * Accessor for instance properties stored in the private $_attributes property 
  19. * @ignore 
  20. * @param string $name 
  21. * @return mixed 
  22. */ 
  23. public function __get($name) 
  24. if (array_key_exists($name, $this->_attributes)) { 
  25. return $this->_attributes[$name]; 
  26. else { 
  27. trigger_error('Undefined property on ' . get_class($this) . ': ' . $name, E_USER_NOTICE); 
  28. return null; 
  29.  
  30. /** 
  31. * Checks for the existance of a property stored in the private $_attributes property 
  32. * @ignore 
  33. * @param string $name 
  34. * @return boolean 
  35. */ 
  36. public function __isset($name) 
  37. return array_key_exists($name, $this->_attributes); 
  38.  
  39. /** 
  40. * Mutator for instance properties stored in the private $_attributes property 
  41. * @ignore 
  42. * @param string $key 
  43. * @param mixed $value 
  44. */ 
  45. public function _set($key, $value) 
  46. $this->_attributes[$key] = $value;