ChildObjectToDecorate::callInChild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Exsio\PhpObjectDecorator\Tests\Fixtures;
4
5
class ChildObjectToDecorate extends ObjectToDecorate
6
{
7
8
    public string $publicProperty;
9
10
    protected string $protectedProperty;
11
12
    private string $privateProperty;
13
14
    /**
15
     * @param string $publicProperty
16
     */
17
    public function __construct()
18
    {
19
        parent::__construct();
20
        $this->publicProperty = "childPropertyValue";
21
        $this->protectedProperty = "childPropertyValue";
22
        $this->privateProperty = "childPropertyValue";
23
    }
24
25
26
    public function callInChild(): string
27
    {
28
        return "CHILD";
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getChildPublicProperty(): string
35
    {
36
        return $this->publicProperty;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getChildProtectedProperty(): string
43
    {
44
        return $this->protectedProperty;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getChildPrivateProperty(): string
51
    {
52
        return $this->privateProperty;
53
    }
54
55
56
}