abstract class OutputStyle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Style/OutputStyle.php \Symfony\Component\Console\Style\OutputStyle
Decorates output to add console style guide helpers.
@author Kevin Bond <kevinbond@gmail.com>
Hierarchy
- class \Symfony\Component\Console\Style\OutputStyle implements OutputInterface, StyleInterface
Expanded class hierarchy of OutputStyle
File
- vendor/
symfony/ console/ Style/ OutputStyle.php, line 23
Namespace
Symfony\Component\Console\StyleView source
abstract class OutputStyle implements OutputInterface, StyleInterface {
private $output;
/**
* @param OutputInterface $output
*/
public function __construct(OutputInterface $output) {
$this->output = $output;
}
/**
* {@inheritdoc}
*/
public function newLine($count = 1) {
$this->output
->write(str_repeat(PHP_EOL, $count));
}
/**
* @param int $max
*
* @return ProgressBar
*/
public function createProgressBar($max = 0) {
return new ProgressBar($this->output, $max);
}
/**
* {@inheritdoc}
*/
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) {
$this->output
->write($messages, $newline, $type);
}
/**
* {@inheritdoc}
*/
public function writeln($messages, $type = self::OUTPUT_NORMAL) {
$this->output
->writeln($messages, $type);
}
/**
* {@inheritdoc}
*/
public function setVerbosity($level) {
$this->output
->setVerbosity($level);
}
/**
* {@inheritdoc}
*/
public function getVerbosity() {
return $this->output
->getVerbosity();
}
/**
* {@inheritdoc}
*/
public function setDecorated($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();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputInterface:: |
constant | |||
OutputStyle:: |
private | property | ||
OutputStyle:: |
public | function | 1 | |
OutputStyle:: |
public | function |
Returns current output formatter instance. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Gets the current verbosity of the output. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Gets the decorated flag. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Add newline(s). Overrides StyleInterface:: |
1 |
OutputStyle:: |
public | function |
Sets the decorated flag. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Sets output formatter. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Sets the verbosity of the output. Overrides OutputInterface:: |
|
OutputStyle:: |
public | function |
Writes a message to the output. Overrides OutputInterface:: |
1 |
OutputStyle:: |
public | function |
Writes a message to the output and adds a newline at the end. Overrides OutputInterface:: |
1 |
OutputStyle:: |
public | function | 1 | |
StyleInterface:: |
public | function | Asks a question. | 1 |
StyleInterface:: |
public | function | Asks a question with the user input hidden. | 1 |
StyleInterface:: |
public | function | Formats a caution admonition. | 1 |
StyleInterface:: |
public | function | Asks a choice question. | 1 |
StyleInterface:: |
public | function | Asks for confirmation. | 1 |
StyleInterface:: |
public | function | Formats an error result bar. | 1 |
StyleInterface:: |
public | function | Formats a list. | 1 |
StyleInterface:: |
public | function | Formats a note admonition. | 1 |
StyleInterface:: |
public | function | Advances the progress output X steps. | 1 |
StyleInterface:: |
public | function | Finishes the progress output. | 1 |
StyleInterface:: |
public | function | Starts the progress output. | 1 |
StyleInterface:: |
public | function | Formats a section title. | 1 |
StyleInterface:: |
public | function | Formats a success result bar. | 1 |
StyleInterface:: |
public | function | Formats a table. | 1 |
StyleInterface:: |
public | function | Formats informational text. | 1 |
StyleInterface:: |
public | function | Formats a command title. | 1 |
StyleInterface:: |
public | function | Formats an warning result bar. | 1 |