BufferedOutput.php
2 years ago
ConsoleOutput.php
1 year ago
ConsoleOutputInterface.php
2 years ago
ConsoleSectionOutput.php
1 year ago
NullOutput.php
1 year ago
Output.php
1 year ago
OutputInterface.php
1 year ago
StreamOutput.php
1 year ago
TrimmedBufferOutput.php
1 year ago
OutputInterface.php
96 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 Matomo\Dependencies\Symfony\Component\Console\Output; |
| 12 | |
| 13 | use Matomo\Dependencies\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 | */ |
| 19 | interface OutputInterface |
| 20 | { |
| 21 | public const VERBOSITY_QUIET = 16; |
| 22 | public const VERBOSITY_NORMAL = 32; |
| 23 | public const VERBOSITY_VERBOSE = 64; |
| 24 | public const VERBOSITY_VERY_VERBOSE = 128; |
| 25 | public const VERBOSITY_DEBUG = 256; |
| 26 | public const OUTPUT_NORMAL = 1; |
| 27 | public const OUTPUT_RAW = 2; |
| 28 | public const OUTPUT_PLAIN = 4; |
| 29 | /** |
| 30 | * Writes a message to the output. |
| 31 | * |
| 32 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 33 | * @param bool $newline Whether to add a newline |
| 34 | * @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 |
| 35 | */ |
| 36 | public function write($messages, bool $newline = \false, int $options = 0); |
| 37 | /** |
| 38 | * Writes a message to the output and adds a newline at the end. |
| 39 | * |
| 40 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 41 | * @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 |
| 42 | */ |
| 43 | public function writeln($messages, int $options = 0); |
| 44 | /** |
| 45 | * Sets the verbosity of the output. |
| 46 | */ |
| 47 | public function setVerbosity(int $level); |
| 48 | /** |
| 49 | * Gets the current verbosity of the output. |
| 50 | * |
| 51 | * @return int |
| 52 | */ |
| 53 | public function getVerbosity(); |
| 54 | /** |
| 55 | * Returns whether verbosity is quiet (-q). |
| 56 | * |
| 57 | * @return bool |
| 58 | */ |
| 59 | public function isQuiet(); |
| 60 | /** |
| 61 | * Returns whether verbosity is verbose (-v). |
| 62 | * |
| 63 | * @return bool |
| 64 | */ |
| 65 | public function isVerbose(); |
| 66 | /** |
| 67 | * Returns whether verbosity is very verbose (-vv). |
| 68 | * |
| 69 | * @return bool |
| 70 | */ |
| 71 | public function isVeryVerbose(); |
| 72 | /** |
| 73 | * Returns whether verbosity is debug (-vvv). |
| 74 | * |
| 75 | * @return bool |
| 76 | */ |
| 77 | public function isDebug(); |
| 78 | /** |
| 79 | * Sets the decorated flag. |
| 80 | */ |
| 81 | public function setDecorated(bool $decorated); |
| 82 | /** |
| 83 | * Gets the decorated flag. |
| 84 | * |
| 85 | * @return bool |
| 86 | */ |
| 87 | public function isDecorated(); |
| 88 | public function setFormatter(OutputFormatterInterface $formatter); |
| 89 | /** |
| 90 | * Returns current output formatter instance. |
| 91 | * |
| 92 | * @return OutputFormatterInterface |
| 93 | */ |
| 94 | public function getFormatter(); |
| 95 | } |
| 96 |