Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | class WithoutMagicPropertiesClass implements IStrictPropertiesContainer |
||
31 | { |
||
32 | use PropertiesHandler; |
||
33 | |||
34 | public function __construct() |
||
35 | { |
||
36 | $this->magic_ = 'magic'; |
||
37 | $this->noMagicProperty = 'no magic'; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | private $magic_; |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | protected function getMagicProperty(): string |
||
52 | { |
||
53 | return $this->magic_; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * |
||
58 | * @param string $value |
||
59 | */ |
||
60 | protected function setMagicProperty(string $value) |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | private $noMagicProperty; |
||
70 | |||
71 | /** |
||
72 | * |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | protected function getNoMagicProperty(): string |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * |
||
83 | * @param string $value |
||
84 | */ |
||
85 | protected function setNoMagicProperty(string $value) |
||
90 |