mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-09 17:36:22 +02:00
cs
This commit is contained in:
@ -40,7 +40,9 @@ class Singleton
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{}
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prevent the instance from being cloned
|
* prevent the instance from being cloned
|
||||||
@ -48,7 +50,9 @@ class Singleton
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function __clone()
|
private function __clone()
|
||||||
{}
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prevent from being unserialized
|
* prevent from being unserialized
|
||||||
@ -56,5 +60,7 @@ class Singleton
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function __wakeup()
|
private function __wakeup()
|
||||||
{}
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user