Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | 3 | protected function jump(string $interaction): void |
|
21 | { |
||
22 | /** @var Interaction $instance */ |
||
23 | 3 | $instance = resolve($interaction); |
|
24 | |||
25 | 2 | if (!$instance instanceof Interaction) { |
|
26 | 1 | throw new InvalidArgumentException('Invalid interaction `'.$interaction.'`'); |
|
27 | } |
||
28 | |||
29 | // Run interaction |
||
30 | 1 | $this->conversationManager()->converse($instance); |
|
31 | 1 | } |
|
32 | |||
46 |