| Conditions | 5 |
| Paths | 8 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 4 | protected function init(): void |
|
| 44 | { |
||
| 45 | 4 | $this->get = $this->data['get'] ?? null; |
|
| 46 | 4 | $this->set = $this->data['set'] ?? null; |
|
| 47 | |||
| 48 | 4 | if (null === $this->get && null === $this->set) { |
|
| 49 | 1 | throw new RuntimeException('@Accessor annotation must specify either get or set key'); |
|
| 50 | } |
||
| 51 | 3 | } |
|
| 52 | |||
| 53 | /** |
||
| 54 | * A method name representing the getter |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 73 |