| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 9 | public function __invoke(PathInterface $from, PathInterface $to): PathInterface |
|
| 22 | { |
||
| 23 | 9 | foreach ($this->resolvers as $resolve) { |
|
| 24 | try { |
||
| 25 | 9 | return $resolve($from, $to); |
|
| 26 | 9 | } catch (ValueNotSupported $e) { |
|
| 27 | //pass |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | 1 | throw new ValueNotSupported((string) $to); |
|
| 32 | } |
||
| 34 |