| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function __construct(array $data) |
||
| 19 | { |
||
| 20 | if (!isset($data['value']) || !is_array($data['value'])) { |
||
| 21 | throw new \Exception(sprintf( |
||
| 22 | '%s expects the annotation to define an array; received "%s"', |
||
| 23 | get_class($this), |
||
| 24 | isset($data['value']) ? gettype($data['value']) : 'null' |
||
| 25 | )); |
||
| 26 | } |
||
| 27 | $this->value = $data['value']; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |