Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
31 | 19 | public function load($value): Argument |
|
32 | { |
||
33 | 19 | foreach ($this->arguments as $argument) { |
|
34 | try { |
||
35 | 19 | $build = $argument.'::fromValue'; |
|
36 | |||
37 | 19 | return $build($value, $this); |
|
38 | 17 | } catch (ValueNotSupported $e) { |
|
39 | //pass |
||
40 | } |
||
41 | } |
||
42 | |||
43 | 1 | throw new ValueNotSupported(var_export($value, true)); |
|
44 | } |
||
61 |