From a0315b8196df7137eadd3aa67e35ca90a73bbb76 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Wed, 20 Dec 2023 13:48:35 +0100 Subject: [PATCH] Update PHPDoc for Singleton trait --- src/Traits/Singleton.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Traits/Singleton.php b/src/Traits/Singleton.php index 41d94b8..4c98aac 100644 --- a/src/Traits/Singleton.php +++ b/src/Traits/Singleton.php @@ -34,6 +34,8 @@ trait Singleton { /** * Holds the singleton instances. + * + * @var array */ private static array $singleton = []; @@ -42,7 +44,7 @@ trait Singleton * * @param mixed ...$args Constructor parameters * - * @return static + * @return static The singleton instance */ final public static function getInstance(mixed ...$args): static { @@ -55,7 +57,7 @@ trait Singleton /** * This is a singleton class, thus the constructor is private. * - * Usage: Get an instance of this class by calling self::getInstance() + * Usage: Get an instance of this class by calling getInstance() */ abstract private function __construct();