diff --git a/app/Plugin.php b/app/Plugin.php index 083cd1c..97766f1 100644 --- a/app/Plugin.php +++ b/app/Plugin.php @@ -65,9 +65,11 @@ public function __construct(Extendable $ext) $this->container = new Container($this->pimple); } - public function setPluginFilePath(string $pluginFilePath): void + public function setPluginFilePath(string $pluginFilePath): self { $this->pluginFilePath = $pluginFilePath; + + return $this; } /** @@ -76,9 +78,11 @@ public function setPluginFilePath(string $pluginFilePath): void * @param array $services * @phpstan-param array $services */ - public function addServices(array $services): void + public function addServices(array $services): self { $this->services = $services; + + return $this; } public function boot(): void