| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class PlayerIO implements PlayerAction |
||
| 13 | { |
||
| 14 | public function __construct( |
||
| 17 | |||
| 18 | public function askForDecision(string $question, DecisionCollection $decisions): Decision |
||
| 22 | } |
||
| 23 | |||
| 24 | public function askForInformation(string $question): string |
||
| 25 | { |
||
| 26 | $this->clearOutput(); |
||
| 27 | return $this->io->ask($question); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function askForConfirmation(string $question): bool |
||
| 31 | { |
||
| 32 | $this->clearOutput(); |
||
| 33 | return $this->io->confirm($question); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function note(string $message): void |
||
| 39 | } |
||
| 40 | |||
| 41 | private function clearOutput(): void |
||
| 44 | } |
||
| 45 | } |
||
| 46 |