public function __construct($id, $config = []) { $this->id = $id; parent::__construct($config); }
public function __get($name) { if (isset($this->_components[$name])) { return $this->get($name); } else { return parent::__get($name); } }