| 1 | <?php |
||
| 6 | class ComposerIOHandler implements IOHandlerInterface |
||
| 7 | { |
||
| 8 | /** @var IOInterface */ |
||
| 9 | protected $bus; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * ComposerIOHandler constructor. |
||
| 13 | * |
||
| 14 | * @param IOInterface $bus |
||
| 15 | */ |
||
| 16 | public function __construct(IOInterface $bus) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Output a message to the console. |
||
| 23 | * |
||
| 24 | * @param string $message |
||
| 25 | */ |
||
| 26 | public function out(string $message) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get input from the console. |
||
| 33 | * |
||
| 34 | * @param string $question |
||
| 35 | * @param string $default |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function in(string $question, string $default = '') |
||
| 42 | } |
||
| 43 |