Пример #1
0
 public function __construct($id, $config = [])
 {
     $this->id = $id;
     parent::__construct($config);
 }
Пример #2
0
 public function __get($name)
 {
     if (isset($this->_components[$name])) {
         return $this->get($name);
     } else {
         return parent::__get($name);
     }
 }