1 | <?php |
||
19 | trait SingletonTrait |
||
20 | { |
||
21 | use SingleInstanceTrait; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * Prevent 'new' operator from outside |
||
26 | */ |
||
27 | protected function __construct() |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Prevent clone method |
||
34 | */ |
||
35 | private function __clone() |
||
38 | |||
39 | |||
40 | /** |
||
41 | * Prevent unserialize method |
||
42 | */ |
||
43 | /** @noinspection PhpUnusedPrivateMethodInspection */ |
||
44 | private function __wakeup() |
||
47 | } |
||
48 |