| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 63 | 1 | public function onFailure(InvalidStateTransitionException $exception, $context, StateMachine $machine): string |
|
| 64 | { |
||
| 65 | $closure = function (array $args) use ($context) { |
||
| 66 | 1 | $context->{$this->method}(...$args); |
|
| 67 | 1 | }; |
|
| 68 | 1 | $closure($this->args); |
|
| 69 | |||
| 70 | 1 | return $this->to; |
|
| 71 | } |
||
| 73 |