options)) { if (!method_exists($this, 'getExtensionID')) { return []; } $this->options = $this->extensionManager->getExtensionConfig($this->getExtensionID()); if (method_exists($this, 'getOptions')) { $this->options = array_merge($this->options, $this->getOptions()); } } return $key ? ($this->options[$key] ?? null) : $this->options; } public function __get(string $name): mixed { return $this->getConfig($name); } public function __isset(string $name): bool { return $this->getConfig($name) !== null; } }