HydratedObject   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
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 GeneratedHydratorTestAsset;
6
7
/**
8
 * Test object to be hydrated
9
 */
10
class HydratedObject
11
{
12
    /** @var mixed */
13
    public $foo = 1;
14
15
    /** @var mixed */
16
    protected $bar = 2;
17
18
//phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedProperty
19
    /** @var mixed */
20
    private $baz = 3;
21
//phpcs:enable
22
23
    /**
24
     * Method to be disabled
25
     */
26
    public function doFoo() : void
27
    {
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function __get(string $name)
34
    {
35
        return $this->$name;
36
    }
37
}
38