Completed
Push — master ( 2bbfc9...9b6b62 )
by Marco
12s
created

ClassWithPrivatePropertiesAndParents   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 10
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 92
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setProperty0() 0 4 1
A getProperty0() 0 4 1
A setProperty20() 0 4 1
A getProperty20() 0 4 1
A setProperty30() 0 4 1
A getProperty30() 0 4 1
A setProperty31() 0 4 1
A getProperty31() 0 4 1
A setProperty32() 0 4 1
A getProperty32() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GeneratedHydratorTestAsset;
6
7
/**
8
 * Base test class to play around with parent class private properties
9
 *
10
 * @author Marco Pivetta <[email protected]>
11
 * @author Pierre Rineau <[email protected]>
12
 * @license MIT
13
 */
14
class ClassWithPrivatePropertiesAndParents extends ClassWithPrivatePropertiesAndParent
15
{
16
    private $property0 = 'property0_fromChild';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
17
18
    private $property20 = 'property20_fromChild';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
19
20
    private $property30 = 'property30';
21
22
    protected $property31 = 'property31';
23
24
    public $property32 = 'property32';
25
26
    /**
27
     * @param string $property0
28
     */
29
    public function setProperty0($property0)
30
    {
31
        $this->property0 = $property0;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getProperty0()
38
    {
39
        return $this->property0;
40
    }
41
42
    /**
43
     * @param string $property20
44
     */
45
    public function setProperty20($property20)
46
    {
47
        $this->property20 = $property20;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getProperty20()
54
    {
55
        return $this->property20;
56
    }
57
58
    /**
59
     * @param string $property30
60
     */
61
    public function setProperty30($property30)
62
    {
63
        $this->property30 = $property30;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getProperty30()
70
    {
71
        return $this->property30;
72
    }
73
74
    /**
75
     * @param string $property31
76
     */
77
    public function setProperty31($property31)
78
    {
79
        $this->property31 = $property31;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getProperty31()
86
    {
87
        return $this->property31;
88
    }
89
90
    /**
91
     * @param string $property32
92
     */
93
    public function setProperty32($property32)
94
    {
95
        $this->property32 = $property32;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getProperty32()
102
    {
103
        return $this->property32;
104
    }
105
}
106