| Conditions | 4 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function initAnnotation(array $properties) |
||
| 52 | { |
||
| 53 | if(count($properties) !== 1 || !isset($properties['name']) || !is_string($properties['name'])) |
||
| 54 | { |
||
| 55 | throw new AnnotationException('The @databag annotation requires a property "name" of type string'); |
||
| 56 | } |
||
| 57 | $this->sName = $properties['name']; |
||
| 58 | } |
||
| 68 |