Example #1
0
 public function __get($k)
 {
     try {
         return parent::__get($k);
     } catch (Exception $e) {
         return isset($this->options[$k]) ? $this->options[$k] : null;
     }
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function __get($name)
 {
     if (array_key_exists($name, $this->properties) || in_array($name, $this->properties)) {
         return array_key_exists($name, $this->properties) ? $this->properties[$name] : null;
     } else {
         return parent::__get($name);
     }
 }