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