BufferedOutput.php
2 years ago
ConsoleOutput.php
2 years ago
ConsoleOutputInterface.php
2 years ago
ConsoleSectionOutput.php
2 years ago
NullOutput.php
2 years ago
Output.php
2 years ago
OutputInterface.php
2 years ago
StreamOutput.php
2 years ago
TrimmedBufferOutput.php
2 years ago
OutputInterface.php
97 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWP_SCOPED\Symfony\Component\Console\Output; |
| 12 | |
| 13 | use IAWP_SCOPED\Symfony\Component\Console\Formatter\OutputFormatterInterface; |
| 14 | /** |
| 15 | * OutputInterface is the interface implemented by all Output classes. |
| 16 | * |
| 17 | * @author Fabien Potencier <fabien@symfony.com> |
| 18 | * @internal |
| 19 | */ |
| 20 | interface OutputInterface |
| 21 | { |
| 22 | public const VERBOSITY_QUIET = 16; |
| 23 | public const VERBOSITY_NORMAL = 32; |
| 24 | public const VERBOSITY_VERBOSE = 64; |
| 25 | public const VERBOSITY_VERY_VERBOSE = 128; |
| 26 | public const VERBOSITY_DEBUG = 256; |
| 27 | public const OUTPUT_NORMAL = 1; |
| 28 | public const OUTPUT_RAW = 2; |
| 29 | public const OUTPUT_PLAIN = 4; |
| 30 | /** |
| 31 | * Writes a message to the output. |
| 32 | * |
| 33 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 34 | * @param bool $newline Whether to add a newline |
| 35 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
| 36 | */ |
| 37 | public function write($messages, bool $newline = \false, int $options = 0); |
| 38 | /** |
| 39 | * Writes a message to the output and adds a newline at the end. |
| 40 | * |
| 41 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 42 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
| 43 | */ |
| 44 | public function writeln($messages, int $options = 0); |
| 45 | /** |
| 46 | * Sets the verbosity of the output. |
| 47 | */ |
| 48 | public function setVerbosity(int $level); |
| 49 | /** |
| 50 | * Gets the current verbosity of the output. |
| 51 | * |
| 52 | * @return int |
| 53 | */ |
| 54 | public function getVerbosity(); |
| 55 | /** |
| 56 | * Returns whether verbosity is quiet (-q). |
| 57 | * |
| 58 | * @return bool |
| 59 | */ |
| 60 | public function isQuiet(); |
| 61 | /** |
| 62 | * Returns whether verbosity is verbose (-v). |
| 63 | * |
| 64 | * @return bool |
| 65 | */ |
| 66 | public function isVerbose(); |
| 67 | /** |
| 68 | * Returns whether verbosity is very verbose (-vv). |
| 69 | * |
| 70 | * @return bool |
| 71 | */ |
| 72 | public function isVeryVerbose(); |
| 73 | /** |
| 74 | * Returns whether verbosity is debug (-vvv). |
| 75 | * |
| 76 | * @return bool |
| 77 | */ |
| 78 | public function isDebug(); |
| 79 | /** |
| 80 | * Sets the decorated flag. |
| 81 | */ |
| 82 | public function setDecorated(bool $decorated); |
| 83 | /** |
| 84 | * Gets the decorated flag. |
| 85 | * |
| 86 | * @return bool |
| 87 | */ |
| 88 | public function isDecorated(); |
| 89 | public function setFormatter(OutputFormatterInterface $formatter); |
| 90 | /** |
| 91 | * Returns current output formatter instance. |
| 92 | * |
| 93 | * @return OutputFormatterInterface |
| 94 | */ |
| 95 | public function getFormatter(); |
| 96 | } |
| 97 |