HydratedObject   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A doFoo() 0 3 1
A __get() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
/**
8
 * Test object to be hydrated
9
 *
10
 * @author Marco Pivetta <[email protected]>
11
 * @license MIT
12
 */
13
class HydratedObject
14
{
15
    /**
16
     * @var mixed
17
     */
18
    public $foo = 1;
19
20
    /**
21
     * @var mixed
22
     */
23
    protected $bar = 2;
24
25
    /**
26
     * @var mixed
27
     */
28
    private $baz = 3;
29
30
    /**
31
     * Method to be disabled
32
     */
33
    public function doFoo()
34
    {
35
    }
36
37
    /**
38
     * @param string $name
39
     *
40
     * @return mixed
41
     */
42
    public function __get($name)
43
    {
44
        return $this->$name;
45
    }
46
}
47