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