public function __get($prop) { switch ($prop) { default: $underscoredProp = ChargeIO_Utils::underscore($prop); if (isset($this->attributes[$underscoredProp])) { return $this->attributes[$underscoredProp]; } else { return null; } } }
public function __set($prop, $value) { $underscoredProp = ChargeIO_Utils::underscore($prop); $this->attributes[$underscoredProp] = $value; }