| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
namespace Symfony\Component\Console\Output; |
| 13 |
|
| 14 |
use Symfony\Component\Console\Formatter\NullOutputFormatter; |
| 15 |
use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
class NullOutput implements OutputInterface |
| 26 |
{ |
| 27 |
private NullOutputFormatter $formatter; |
| 28 |
|
| 29 |
public function setFormatter(OutputFormatterInterface $formatter): void |
| 30 |
{ |
| 31 |
|
| 32 |
} |
| 33 |
|
| 34 |
public function getFormatter(): OutputFormatterInterface |
| 35 |
{ |
| 36 |
|
| 37 |
return $this->formatter ??= new NullOutputFormatter(); |
| 38 |
} |
| 39 |
|
| 40 |
public function setDecorated(bool $decorated): void |
| 41 |
{ |
| 42 |
|
| 43 |
} |
| 44 |
|
| 45 |
public function isDecorated(): bool |
| 46 |
{ |
| 47 |
return false; |
| 48 |
} |
| 49 |
|
| 50 |
public function setVerbosity(int $level): void |
| 51 |
{ |
| 52 |
|
| 53 |
} |
| 54 |
|
| 55 |
public function getVerbosity(): int |
| 56 |
{ |
| 57 |
return self::VERBOSITY_SILENT; |
| 58 |
} |
| 59 |
|
| 60 |
public function isSilent(): bool |
| 61 |
{ |
| 62 |
return true; |
| 63 |
} |
| 64 |
|
| 65 |
public function isQuiet(): bool |
| 66 |
{ |
| 67 |
return false; |
| 68 |
} |
| 69 |
|
| 70 |
public function isVerbose(): bool |
| 71 |
{ |
| 72 |
return false; |
| 73 |
} |
| 74 |
|
| 75 |
public function isVeryVerbose(): bool |
| 76 |
{ |
| 77 |
return false; |
| 78 |
} |
| 79 |
|
| 80 |
public function isDebug(): bool |
| 81 |
{ |
| 82 |
return false; |
| 83 |
} |
| 84 |
|
| 85 |
public function writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL): void |
| 86 |
{ |
| 87 |
|
| 88 |
} |
| 89 |
|
| 90 |
public function write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL): void |
| 91 |
{ |
| 92 |
|
| 93 |
} |
| 94 |
} |