| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | class WithMagicPropertiesChildClass extends WithMagicPropertiesBaseClass |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * [__construct description] |
||
| 33 | * |
||
| 34 | * @param int $readOnlyChildProperty |
||
| 35 | */ |
||
| 36 | public function __construct($readOnlyChildProperty = 1) |
||
| 37 | { |
||
| 38 | $this->childProperty_ = 'child'; |
||
| 39 | $this->readOnlyChildProperty_ = $readOnlyChildProperty; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | private $childProperty_; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * |
||
| 50 | * |
||
| 51 | * @var int |
||
| 52 | */ |
||
| 53 | private $readOnlyChildProperty_ = -1; |
||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | protected function getChildProperty(): string |
||
| 62 | { |
||
| 63 | return $this->childProperty_; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * |
||
| 68 | * @param string $value |
||
| 69 | */ |
||
| 70 | protected function setChildProperty(string $value) |
||
| 71 | { |
||
| 72 | $this->childProperty_ = $value; |
||
| 73 | } |
||
| 74 | |||
| 75 | |||
| 76 | /** |
||
| 77 | * |
||
| 78 | * |
||
| 79 | * @return int |
||
| 80 | */ |
||
| 81 | protected function getReadOnlyChildProperty(): int |
||
| 84 | } |
||
| 85 | } |
||
| 86 |