| Total Complexity | 7 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 24 | class C extends B implements ICustomPrefixedPropertiesContainer |
||
| 25 | { |
||
| 26 | public function __construct() |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | public static function getCustomGetterPrefix(): string |
||
| 37 | { |
||
| 38 | return 'getValueOf'; |
||
| 39 | } |
||
| 40 | |||
| 41 | public static function getCustomSetterPrefix(): string |
||
| 42 | { |
||
| 43 | return 'setValueOf'; |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | private $attribute5 = -5; |
||
| 48 | |||
| 49 | public function getValueOfAttribute5() |
||
| 50 | { |
||
| 51 | return $this->attribute5 * 2; |
||
| 52 | } |
||
| 53 | |||
| 54 | private $attribute6 = -6; |
||
| 55 | public $property6; |
||
| 56 | |||
| 57 | protected function getValueOfProperty6() |
||
| 58 | { |
||
| 59 | return $this->attribute6; |
||
| 60 | } |
||
| 61 | |||
| 62 | protected function setValueOfProperty6($value) |
||
| 63 | { |
||
| 64 | $this->property6 = $value * 99; |
||
| 65 | } |
||
| 66 | |||
| 67 | private $attribute7 = -7; |
||
| 68 | public $property7; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Wrong prefix getter; will never be called |
||
| 72 | */ |
||
| 73 | protected function getProperty7() |
||
| 76 | } |
||
| 77 | } |
||
| 78 |