diff --git a/Creational/Singleton/Singleton.php b/Creational/Singleton/Singleton.php index ebad0a648..d4ea3a23e 100644 --- a/Creational/Singleton/Singleton.php +++ b/Creational/Singleton/Singleton.php @@ -28,6 +28,13 @@ private function __construct() { } + /** + * prevent the instance from being cloned (which would create a second instance of it) + */ + private function __clone() + { + } + /** * prevent from being unserialized (which would create a second instance of it) */