| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __invoke(Player $player, PlayerAction $playerAction): Decision |
||
| 30 | { |
||
| 31 | $playerAction->introduce($this->subject->getName()); |
||
| 32 | $playerAction->tell([(string) $this->context, '']); |
||
| 33 | |||
| 34 | (new Dialog($player, $this->subject, $this->dialogOption, $playerAction))(); |
||
| 35 | $playerAction->askForConfirmation('Continue?'); |
||
| 36 | |||
| 37 | return $playerAction->askForDecision('Where do you want to go?', $this->decisionCollection); |
||
| 38 | } |
||
| 45 |