| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 21 | public function resolve($do): TransitionEventCallback |
|
| 28 | { |
||
| 29 | 21 | foreach ($this->transitionEventCallbackFactories as $transitionEventCallbackFactory) { |
|
| 30 | 21 | if ($transitionEventCallbackFactory->supports($do)) { |
|
| 31 | 21 | return $transitionEventCallbackFactory->build($do); |
|
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | throw new \RuntimeException('Could not resolve transition event callback'); |
||
| 36 | } |
||
| 45 |