| 1 | <?php |
||
| 22 | class Accessor extends AbstractAnnotation |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Method name representing getter |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $get; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Method name representing setter |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $set; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor |
||
| 40 | * |
||
| 41 | * @throws \RuntimeException |
||
| 42 | */ |
||
| 43 | 4 | protected function init(): void |
|
| 52 | |||
| 53 | /** |
||
| 54 | * A method name representing the getter |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 2 | public function getter(): ?string |
|
| 62 | |||
| 63 | /** |
||
| 64 | * A method name representing the setter |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 2 | public function setter(): ?string |
|
| 72 | } |
||
| 73 |