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