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 |
||
24 | public function __invoke(Player $player, PlayerAction $playerAction): Decision |
||
25 | { |
||
26 | $player->setCheckpoint($this); |
||
27 | $playerAction->savePlayerState($player); |
||
28 | |||
29 | $playerAction->introduce((string) $this->context->getLocation()); |
||
30 | $playerAction->tell((string) $this->context); |
||
31 | |||
32 | return $playerAction->askForDecision('Where do you want to go?', $this->decisionCollection); |
||
33 | } |
||
40 |