diff options
| author | winter | 2024-12-09 21:31:54 +0000 |
|---|---|---|
| committer | winter | 2024-12-09 21:31:54 +0000 |
| commit | 4c7bde1400820f36caf8b2a5374007384c3018f3 (patch) | |
| tree | 83ed26ff368117b8e392f7bc28736482077fc2f4 /WpfTest/Singleton.php | |
| parent | 50edbd3907c26a2d4d616421de9bb51a4d083c1b (diff) | |
rename to Digitigrade / PawPub
:3
Diffstat (limited to 'WpfTest/Singleton.php')
| -rw-r--r-- | WpfTest/Singleton.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/WpfTest/Singleton.php b/WpfTest/Singleton.php deleted file mode 100644 index b365e1e..0000000 --- a/WpfTest/Singleton.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -namespace WpfTest; - -abstract class Singleton { - private static array $instances; - protected function __construct() { - } - /** - * @return static the singleton instance - */ - public static function getInstance() { - if (!isset(self::$instances[static::class])) { - //error_log('making a new ' . static::class); - self::$instances[static::class] = new static(); - } - return self::$instances[static::class]; - } -}
\ No newline at end of file |
