| Conditions | 5 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function initAnnotation(array $properties) |
||
| 48 | { |
||
| 49 | if(count($properties) !== 0 && (count($properties) !== 1 |
||
| 50 | || !isset($properties[0]) || !is_bool($properties[0]))) |
||
| 51 | { |
||
| 52 | throw new AnnotationException('the @exclude annotation requires a single boolean or no property'); |
||
| 53 | } |
||
| 54 | $this->bValue = $properties[0] ?? true; |
||
| 55 | } |
||
| 65 |