* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Style; use Symfony\Component\Console\Formatter\OutputFormatterInterface; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Decorates output to add console style guide helpers. * * @author Kevin Bond */ abstract class OutputStyle implements OutputInterface, StyleInterface { private $output; public function __construct(OutputInterface $output) { $this->output = $output; } /** * {@inheritdoc} */ public function newLine(int $count = 1) { $this->output->write(str_repeat(\PHP_EOL, $count)); } /** * @return ProgressBar */ public function createProgressBar(int $max = 0) { return new ProgressBar($this->output, $max); } /** * {@inheritdoc} */ public function write($messages, bool $newline = false, int $type = self::OUTPUT_NORMAL) { $this->output->write($messages, $newline, $type); } /** * {@inheritdoc} */ public function writeln($messages, int $type = self::OUTPUT_NORMAL) { $this->output->writeln($messages, $type); } /** * {@inheritdoc} */ public function setVerbosity(int $level) { $this->output->setVerbosity($level); } /** * {@inheritdoc} */ public function getVerbosity() { return $this->output->getVerbosity(); } /** * {@inheritdoc} */ public function setDecorated(bool $decorated) { $this->output->setDecorated($decorated); } /** * {@inheritdoc} */ public function isDecorated() { return $this->output->isDecorated(); } /** * {@inheritdoc} */ public function setFormatter(OutputFormatterInterface $formatter) { $this->output->setFormatter($formatter); } /** * {@inheritdoc} */ public function getFormatter() { return $this->output->getFormatter(); } /** * {@inheritdoc} */ public function isQuiet() { return $this->output->isQuiet(); } /** * {@inheritdoc} */ public function isVerbose() { return $this->output->isVerbose(); } /** * {@inheritdoc} */ public function isVeryVerbose() { return $this->output->isVeryVerbose(); } /** * {@inheritdoc} */ public function isDebug() { return $this->output->isDebug(); } protected function getErrorOutput() { if (!$this->output instanceof ConsoleOutputInterface) { return $this->output; } return $this->output->getErrorOutput(); } } __halt_compiler();----SIGNATURE:----J3dQp6yEwb4pBkIYJ/iruBXieOm9Kn24B8on5hXIR4uWqn1EQPz1SuPhc3mD8JDLV1PGllAXbaGkYsXqkJsX1JXWc405SMDpmZFMs8WUCbKWKGzcEubtoM9VQikyZqLP7cU4HiFd7SniYyJUvn0eRTKzkQo5yUi6+dcrC+ETqcBKGSnkmOjUDXecL62C/5gLBE+vDPTaj5QYiYPeUl7olKwsaXqDXVP3DO8bS/UiVljfak34LO7S8Y18hZ4JLeX67MbWgNa/MbtZ8eqR0QJ3HHwFLDxQgBEcxZNEG2XiI9YVUTxMtoxhMUHx8tI0S4J1nFBOkZzAWG0wBU6zT83i7oXm/6xPP17iPH3eRmnfV4iB9dpjrfzoNgGzAffEnA94AFV59rERPQZtYrYwpr7LpXVMYq2KGAxBDbYz77VSSvgnbeR6EKRJYiDa0CyboYbe2w05ZzTNjKNKH7jOdi9+UFiZwBTMwP8+nruNb0u4ULn8O3MW0QA58S3zjy4SMBS6bor87poeiVpTK4HOQqZcJ5P8CKi30rMqHOzSWifLwF3LOzjyXkzqQy6tYzEWBcwxFbD4l64onbkUHCXMSwQlwMl9pnw0nSBRpaJG3cD64rwtfthu8H5scH8bzOuNnj9ynSC3Toc3efdA+fstMiaoj6VMjggLf8/FSUFNKRAr+t0=----ATTACHMENT:----NjA1NTY3Mzc1NzEzNzQ1OSA3NzE5NDgyNzMzODgyNTc1IDc1NTM1NjY1NzA2ODk2MTU=