You are here

public function Braintree::__get in Commerce Braintree 7

returns private/nonexistent instance properties @ignore @access public

Parameters

string $name property name:

Return value

mixed contents of instance properties

File

braintree_php/lib/Braintree.php, line 45

Class

Braintree
Braintree PHP Library

Code

public function __get($name) {
  if (array_key_exists($name, $this->_attributes)) {
    return $this->_attributes[$name];
  }
  else {
    trigger_error('Undefined property on ' . get_class($this) . ': ' . $name, E_USER_NOTICE);
    return null;
  }
}