| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 31 | public function __construct(array $values) |
||
| 32 | { |
||
| 33 | if (is_string($values['value'])) { |
||
| 34 | $this->value = [$values['value']]; |
||
| 35 | } elseif (is_array($values['value'])) { |
||
| 36 | $this->value = $values['value']; |
||
| 37 | } else { |
||
| 38 | throw new \InvalidArgumentException( |
||
| 39 | 'Annotation `' . get_class($this) . '` unexpected type given. Expected string or array, given `' |
||
| 40 | . gettype($values['value']) . '`' |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |