Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function __get($name)
 {
     if (isset($this->_attributes[$name])) {
         return $this->_attributes[$name];
     }
     return parent::__get($name);
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function __isset($name)
 {
     if (array_key_exists($name, $this->_options)) {
         return isset($this->_options[$name]);
     } elseif (array_key_exists($name, $this->_defaultOptions)) {
         return isset($this->_defaultOptions[$name]);
     }
     return parent::__get($name);
 }