commit be4248c853074fe7ca4af660c29138e4c2f28213 parent 854eb47966f770dd736e270453f23a27f28bd807 Author: Felicitus <felicitus@felicitus.org> Date: Sun, 25 Mar 2012 05:08:47 +0200 Added self-reference Diffstat:
M | src/backend/de/RaumZeitLabor/PartKeepr/Util/Singleton.php | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/backend/de/RaumZeitLabor/PartKeepr/Util/Singleton.php b/src/backend/de/RaumZeitLabor/PartKeepr/Util/Singleton.php @@ -8,6 +8,10 @@ abstract class Singleton { } + /** + * Returns an instance of the current singleton + * @return $this + */ public static function getInstance () { if (!static::$instance instanceof static) { static::$instance = new static; @@ -15,6 +19,4 @@ abstract class Singleton { return static::$instance; } -} - -?>- \ No newline at end of file +}+ \ No newline at end of file