ClassWithFinalMagicMethods   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __set() 0 4 1
A __get() 0 4 1
A __isset() 0 4 1
A __unset() 0 4 1
A __sleep() 0 3 1
A __wakeup() 0 3 1
A __clone() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
/**
8
 * Base test class to play around with final pre-existing magic methods
9
 *
10
 * @author Jefersson Nathan <[email protected]>
11
 * @license MIT
12
 */
13
class ClassWithFinalMagicMethods
14
{
15
    final public function __construct()
16
    {
17
    }
18
19
    final public function __set($name, $value)
20
    {
21
        return [$name => $value];
22
    }
23
24
    final public function __get($name)
25
    {
26
        return $name;
27
    }
28
29
    final public function __isset($name)
30
    {
31
        return (bool) $name;
32
    }
33
34
    final public function __unset($name)
35
    {
36
        return (bool) $name;
37
    }
38
39
    final public function __sleep()
40
    {
41
    }
42
43
    final public function __wakeup()
44
    {
45
    }
46
47
    final public function __clone()
48
    {
49
    }
50
}
51