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