| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class Accessor extends AbstractAnnotation |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Method name representing getter |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $get; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Method name representing setter |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $set; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * |
||
| 43 | * @throws RuntimeException |
||
| 44 | */ |
||
| 45 | 4 | protected function init(): void |
|
| 52 | } |
||
| 53 | 3 | } |
|
| 54 | |||
| 55 | /** |
||
| 56 | * A method name representing the getter |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 2 | public function getter(): ?string |
|
| 61 | { |
||
| 62 | 2 | return $this->get; |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * A method name representing the setter |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 2 | public function setter(): ?string |
|
| 73 | } |
||
| 74 | } |
||
| 75 |