Completed
Pull Request — master (#427)
by Michael
03:29
created

ClassWithTypedMagicMethods   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __set() 0 3 1
A __get() 0 4 1
A __isset() 0 4 1
A __unset() 0 4 1
A __sleep() 0 4 1
A __wakeup() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
/**
8
 * Test class used to verify that proxy-manager respects typed magic methods
9
 */
10
class ClassWithTypedMagicMethods
11
{
12
    public function __set(int $name, bool $value) : void
13
    {
14
    }
15
16
    public function __get(int $name) : bool
17
    {
18
        return false;
19
    }
20
21
    public function __isset(int $name) : object
22
    {
23
        return $this;
24
    }
25
26
    public function __unset(int $name) : object
27
    {
28
        return $this;
29
    }
30
31
    public function __sleep() : int
32
    {
33
        return 123;
34
    }
35
36
    public function __wakeup() : int
37
    {
38
    }
39
}
40