Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
50 | 4 | public function loadData($data) |
|
51 | { |
||
52 | 4 | Ch::ek($data, $this->requiredOptions); |
|
53 | 4 | foreach ($data as $name => $value) { |
|
54 | 4 | if (! ($df = $this->getField($name))) |
|
55 | 4 | throw new \RuntimeException("field not set $name"); |
|
56 | |||
57 | 4 | $df->setData($value); |
|
58 | 4 | } |
|
59 | |||
60 | 4 | return $this; |
|
61 | } |
||
62 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.