Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | abstract class ObjectToDecorate |
||
6 | { |
||
7 | public string $publicProperty; |
||
8 | |||
9 | protected string $protectedProperty; |
||
10 | |||
11 | private string $privateProperty; |
||
12 | |||
13 | |||
14 | public function __construct() |
||
15 | { |
||
16 | $this->publicProperty = "propertyValue"; |
||
17 | $this->protectedProperty = "propertyValue"; |
||
18 | $this->privateProperty = "propertyValue"; |
||
19 | } |
||
20 | |||
21 | use ObjectToDecorateTrait; |
||
22 | |||
23 | |||
24 | public function callInParent(): string |
||
25 | { |
||
26 | return "PARENT"; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getPrivateProperty(): string |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getPublicProperty(): string |
||
41 | { |
||
42 | return $this->publicProperty; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getProtectedProperty(): string |
||
51 | } |
||
52 | |||
53 | protected function protectedContent(): string |
||
56 | } |
||
57 | |||
59 | } |