_settings= $settings; } public function __get($key) { if (array_key_exists($key, $this->_settings)) { return $this->_settings[$key]; } throw new Error('Property does not exist'); } public function getRootPath(): string { return $this->path['root'] ? '/' . $this->path['root'] : ''; } public function getViewsPath(): string { return '/' . $this->path['views'] ?? ''; } }