Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
37 | 190 | protected function parseValues(array &$values) |
|
38 | { |
||
39 | 190 | if (array_key_exists('name', $values)) { |
|
40 | 189 | $this->name = $values['name']; |
|
41 | 189 | unset($values['name']); |
|
42 | 189 | } |
|
43 | // Check if we got required properties |
||
44 | 190 | if ((!is_string($this->name)) || ($this->name === '')) { |
|
45 | 1 | throw new AnnotationException('Required property annotation is missed: name'); |
|
46 | } |
||
47 | 189 | } |
|
48 | |||
59 |