1 | <?php |
||
22 | class ComposerIO extends Base |
||
23 | { |
||
24 | /** |
||
25 | * @var \Composer\IO\IOInterface |
||
26 | */ |
||
27 | private $io; |
||
28 | |||
29 | /** |
||
30 | * ComposerIO constructor. |
||
31 | * |
||
32 | * @param \Composer\IO\IOInterface $io |
||
33 | */ |
||
34 | 10 | public function __construct(IOInterface $io) |
|
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | 1 | public function isInteractive() |
|
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | 1 | public function isVerbose() |
|
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | 1 | public function isVeryVerbose() |
|
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | 1 | public function isDebug() |
|
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | 2 | public function write($messages, $newline = true, $verbosity = self::NORMAL) |
|
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | 1 | public function writeError($messages, $newline = true, $verbosity = self::NORMAL) |
|
86 | |||
87 | /** |
||
88 | * {@inheritDoc} |
||
89 | */ |
||
90 | 2 | public function ask($question, $default = null) |
|
94 | |||
95 | /** |
||
96 | * {@inheritDoc} |
||
97 | */ |
||
98 | 1 | public function askConfirmation($question, $default = true) |
|
102 | |||
103 | /** |
||
104 | * {@inheritDoc} |
||
105 | */ |
||
106 | 1 | public function askAndValidate($question, $validator, $attempts = null, $default = null) |
|
110 | } |
||
111 |