File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 7
7
.scannerwork
8
8
phpunit.coverage.xml
9
9
phpunit.report.xml
10
-
10
+ .phpunit.result.cache
Original file line number Diff line number Diff line change @@ -6,28 +6,29 @@ trait Singleton
6
6
{
7
7
protected function __construct ()
8
8
{
9
+ // Constructor cannot be public
9
10
}
10
11
11
12
/**
12
13
* @throws SingletonException
13
14
*/
14
- final public function __clone ()
15
+ public function __clone ()
15
16
{
16
17
throw new SingletonException ('You can not clone a singleton. ' );
17
18
}
18
19
19
20
/**
20
21
* @throws SingletonException
21
22
*/
22
- final public function __sleep ()
23
+ public function __sleep ()
23
24
{
24
25
throw new SingletonException ('You can not serialize a singleton. ' );
25
26
}
26
27
27
28
/**
28
29
* @throws SingletonException
29
30
*/
30
- final public function __wakeup ()
31
+ public function __wakeup ()
31
32
{
32
33
throw new SingletonException ('You can not deserialize a singleton. ' );
33
34
}
You can’t perform that action at this time.
0 commit comments