re-add __clone

I re-added the `__clone` method which removed in the last commit.
This commit is contained in:
Ali Nazari
2021-04-30 01:22:29 +04:30
committed by GitHub
parent bd124378c5
commit 8d87391aa1

View File

@@ -28,6 +28,13 @@ final class Singleton
{
}
/**
* 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)
*/