| Conditions | 4 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function initAnnotation(array $properties) |
||
| 41 | { |
||
| 42 | if(count($properties) != 1 || !isset($properties['name']) || !is_string($properties['name'])) |
||
| 43 | { |
||
| 44 | throw new AnnotationException('The @databag annotation requires a property "name" of type string'); |
||
| 45 | } |
||
| 46 | $this->sName = $properties['name']; |
||
| 47 | } |
||
| 70 |