You are here

public function Braintree_Instance::__get in Commerce Braintree 7

returns private/nonexistent instance properties @access public

Parameters

var $name property name:

Return value

mixed contents of instance properties

File

braintree_php/lib/Braintree/Instance.php, line 38

Class

Braintree_Instance
abstract instance template for various objects

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;
  }
}