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

ClassWithPrivatePropertiesAndParent.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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 ClassWithPrivatePropertiesAndParent extends ClassWithPrivateProperties
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 $property1 = 'property1_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 $property20 = 'property20';
21
22
    protected $property21 = 'property21';
23
24
    public $property22 = 'property22';
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 $property1
44
     */
45
    public function setProperty1($property1)
46
    {
47
        $this->property1 = $property1;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getProperty1()
54
    {
55
        return $this->property1;
56
    }
57
58
    /**
59
     * @param string $property20
60
     */
61
    public function setProperty20($property20)
62
    {
63
        $this->property20 = $property20;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getProperty20()
70
    {
71
        return $this->property20;
72
    }
73
74
    /**
75
     * @param string $property21
76
     */
77
    public function setProperty21($property21)
78
    {
79
        $this->property21 = $property21;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getProperty21()
86
    {
87
        return $this->property21;
88
    }
89
90
    /**
91
     * @param string $property22
92
     */
93
    public function setProperty22($property22)
94
    {
95
        $this->property22 = $property22;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getProperty22()
102
    {
103
        return $this->property22;
104
    }
105
}
106