class NullIO
IOInterface that is not interactive and never writes the output
@author Christophe Coevoet <stof@notk.org>
Hierarchy
- class \Composer\IO\BaseIO implements \Composer\IO\IOInterface
- class \Composer\IO\NullIO extends \Composer\IO\BaseIO
Expanded class hierarchy of NullIO
7 files declare their use of NullIO
- Application.php in vendor/
composer/ composer/ src/ Composer/ Console/ Application.php - AutoloadGenerator.php in vendor/
composer/ composer/ src/ Composer/ Autoload/ AutoloadGenerator.php - BaseCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ BaseCommand.php - DiagnoseCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ DiagnoseCommand.php - FileDownloader.php in vendor/
composer/ composer/ src/ Composer/ Downloader/ FileDownloader.php
File
-
vendor/
composer/ composer/ src/ Composer/ IO/ NullIO.php, line 20
Namespace
Composer\IOView source
class NullIO extends BaseIO {
/**
* @inheritDoc
*/
public function isInteractive() : bool {
return false;
}
/**
* @inheritDoc
*/
public function isVerbose() : bool {
return false;
}
/**
* @inheritDoc
*/
public function isVeryVerbose() : bool {
return false;
}
/**
* @inheritDoc
*/
public function isDebug() : bool {
return false;
}
/**
* @inheritDoc
*/
public function isDecorated() : bool {
return false;
}
/**
* @inheritDoc
*/
public function write($messages, bool $newline = true, int $verbosity = self::NORMAL) : void {
}
/**
* @inheritDoc
*/
public function writeError($messages, bool $newline = true, int $verbosity = self::NORMAL) : void {
}
/**
* @inheritDoc
*/
public function overwrite($messages, bool $newline = true, ?int $size = null, int $verbosity = self::NORMAL) : void {
}
/**
* @inheritDoc
*/
public function overwriteError($messages, bool $newline = true, ?int $size = null, int $verbosity = self::NORMAL) : void {
}
/**
* @inheritDoc
*/
public function ask($question, $default = null) {
return $default;
}
/**
* @inheritDoc
*/
public function askConfirmation($question, $default = true) : bool {
return $default;
}
/**
* @inheritDoc
*/
public function askAndValidate($question, $validator, $attempts = null, $default = null) {
return $default;
}
/**
* @inheritDoc
*/
public function askAndHideAnswer($question) : ?string {
return null;
}
/**
* @inheritDoc
*/
public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false) {
return $default;
}
}