| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function initAnnotation(array $properties) |
||
| 53 | { |
||
| 54 | if(count($properties) != 1 || !isset($properties['field']) || |
||
| 55 | !is_string($properties['field'])) |
||
| 56 | { |
||
| 57 | throw new AnnotationException('The @upload annotation requires a property "field" of type string'); |
||
| 58 | } |
||
| 59 | $this->sField = $properties['field']; |
||
| 60 | } |
||
| 70 |