| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | */ |
||
| 30 | protected function jump(string $interaction): void |
||
| 31 | { |
||
| 32 | /** @var Interaction $instance */ |
||
| 33 | $instance = $this->bot->get($interaction); |
||
| 34 | |||
| 35 | if (!$instance instanceof Interaction) { |
||
| 36 | throw new InvalidArgumentException('Invalid interaction `'.$interaction.'`'); |
||
| 37 | } |
||
| 38 | |||
| 39 | // Run interaction |
||
| 40 | $this->bot->converse($instance); |
||
| 41 | |||
| 42 | $this->transitioned = true; |
||
| 45 |