Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function __construct(array $values) |
||
27 | { |
||
28 | if (is_string($values['value'])) { |
||
29 | $values['value'] = [$values['value']]; |
||
30 | } |
||
31 | if (!is_array($values['value'])) { |
||
32 | throw new \RuntimeException(sprintf('@IgnoreAnnotation expects either a string name, or an array of strings, but got %s.', json_encode($values['value']))); |
||
33 | } |
||
34 | |||
35 | $this->names = $values['value']; |
||
36 | } |
||
38 |