Source of file ConsoleOutput.php
Size: 2,592 Bytes - Last Modified: 2021-12-23T10:57:46+00:00
/var/www/docs.ssmods.com/process/src/src/WebbuildersGroup/GitHubActionsCIRecipe/Behaviour/Output/Printer/ConsoleOutput.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 | <?php namespace WebbuildersGroup\GitHubActionsCIRecipe\Behaviour\Output\Printer; use Behat\Testwork\Output\Printer\OutputPrinter; use Symfony\Component\Console\Output\OutputInterface; class ConsoleOutput implements OutputPrinter { /** * @var OutputInterface */ private $output; /** * @var string */ private $path; /** * @var array */ private $styles; public function __construct(OutputInterface $output) { $this->output = $output; } /** * Sets output path. * @param string $path */ public function setOutputPath($path) { $this->path = $path; } /** * Returns output path. * @return string|null * @deprecated */ public function getOutputPath() { return $this->path; } /** * Sets output styles. * @param array $styles */ public function setOutputStyles(array $styles) { $this->styles = $styles; } /** * Returns output styles. * @return array * @deprecated */ public function getOutputStyles() { return $this->styles; } /** * Forces output to be decorated. * @param bool $decorated */ public function setOutputDecorated($decorated) { $this->output->setDecorated($decorated); } /** * Returns output decoration status. * @return null|bool * @deprecated */ public function isOutputDecorated() { return $this->output->isDecorated(); } /** * Sets output verbosity level. * @param int $level */ public function setOutputVerbosity($level) { $this->output->setVerbosity($level); } /** * Returns output verbosity level. * @return int * @deprecated */ public function getOutputVerbosity() { return $this->output->getVerbosity(); } /** * Writes message(s) to output stream. * @param string|array $messages message or array of messages */ public function write($messages) { $this->output->write($messages); } /** * Writes newlined message(s) to output stream. * @param string|array $messages message or array of messages */ public function writeln($messages = '') { $this->output->writeln($messages); } /** * Clear output stream, so on next write formatter will need to init (create) it again. */ public function flush() { } } |