| Conditions | 5 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | public function initAnnotation(array $properties) |
||
| 57 | { |
||
| 58 | if(count($properties) !== 0 && |
||
| 59 | (count($properties) !== 1 || !isset($properties[0]) || !is_bool($properties[0]))) |
||
| 60 | { |
||
| 61 | throw new AnnotationException('the @exclude annotation requires a single boolean or no property'); |
||
| 62 | } |
||
| 63 | $this->bValue = $properties[0] ?? true; |
||
| 64 | } |
||
| 82 |