| Conditions | 5 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function initAnnotation(array $properties) |
||
| 40 | { |
||
| 41 | if(count($properties) !== 0 && |
||
| 42 | (count($properties) !== 1 || !isset($properties[0]) || !is_bool($properties[0]))) |
||
| 43 | { |
||
| 44 | throw new AnnotationException('the @exclude annotation requires a boolean or no property'); |
||
| 45 | } |
||
| 46 | $this->bValue = $properties[0] ?? true; |
||
| 47 | } |
||
| 65 |