1
0
Fork 0
composer/src/Composer/IO/NullIO.php

130 lines
2.3 KiB
PHP
Raw Normal View History

2012-02-17 23:00:38 +00:00
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\IO;
/**
* IOInterface that is not interactive and never writes the output
*
* @author Christophe Coevoet <stof@notk.org>
*/
class NullIO extends BaseIO
2012-02-17 23:00:38 +00:00
{
/**
* {@inheritDoc}
*/
public function isInteractive()
{
return false;
}
/**
* {@inheritDoc}
*/
public function isVerbose()
{
return false;
}
/**
* {@inheritDoc}
*/
public function isVeryVerbose()
{
return false;
}
/**
* {@inheritDoc}
*/
public function isDebug()
{
return false;
}
2012-04-26 12:54:34 +00:00
/**
* {@inheritDoc}
*/
public function isDecorated()
{
return false;
}
2012-02-17 23:00:38 +00:00
/**
* {@inheritDoc}
*/
public function write($messages, $newline = true, $verbosity = self::NORMAL)
2012-02-17 23:00:38 +00:00
{
}
/**
* {@inheritDoc}
*/
public function writeError($messages, $newline = true, $verbosity = self::NORMAL)
{
}
2012-02-17 23:00:38 +00:00
/**
* {@inheritDoc}
*/
public function overwrite($messages, $newline = true, $size = 80, $verbosity = self::NORMAL)
2012-02-17 23:00:38 +00:00
{
}
2015-02-18 09:03:45 +00:00
/**
* {@inheritDoc}
*/
public function overwriteError($messages, $newline = true, $size = 80, $verbosity = self::NORMAL)
2015-02-18 09:03:45 +00:00
{
}
2012-02-17 23:00:38 +00:00
/**
* {@inheritDoc}
*/
public function ask($question, $default = null)
{
return $default;
}
/**
* {@inheritDoc}
*/
public function askConfirmation($question, $default = true)
{
return $default;
}
/**
* {@inheritDoc}
*/
public function askAndValidate($question, $validator, $attempts = null, $default = null)
2012-02-17 23:00:38 +00:00
{
return $default;
}
/**
* {@inheritDoc}
*/
public function askAndHideAnswer($question)
{
return null;
}
/**
* {@inheritDoc}
*/
2016-02-29 15:32:49 +00:00
public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false)
{
return $default;
}
2012-02-17 23:00:38 +00:00
}