This commit is contained in:
2025-07-03 23:46:08 +03:00
parent 7fe2402ff3
commit ab4499a305
39 changed files with 453 additions and 56 deletions

View File

@@ -14,4 +14,4 @@ namespace Pattern\Creational\Singleton;
interface Loggable
{
public static function getInstance(): static;
}
}

View File

@@ -9,6 +9,7 @@
//phpcs:ignore
declare(strict_types = 1);
namespace Pattern\Creational\Singleton;
class Single extends Singleton implements SingleInterface
@@ -18,4 +19,4 @@ class Single extends Singleton implements SingleInterface
/** @noinspection ForgottenDebugOutputInspection */
dump(__METHOD__);
}
}
}

View File

@@ -101,5 +101,3 @@ class Singleton
return $this;
}
}