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['field']) || !is_string($properties['field'])) |
||
43 | { |
||
44 | throw new AnnotationException('The @upload annotation requires a property "field" of type string'); |
||
45 | } |
||
46 | $this->sField = $properties['field']; |
||
47 | } |
||
65 |