ClassWithFinalMagicMethods::__get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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