123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace Symfony\Component\Console\Formatter;
- final class NullOutputFormatter implements OutputFormatterInterface
- {
- private NullOutputFormatterStyle $style;
- public function format(?string $message): ?string
- {
- return null;
- }
- public function getStyle(string $name): OutputFormatterStyleInterface
- {
-
- return $this->style ??= new NullOutputFormatterStyle();
- }
- public function hasStyle(string $name): bool
- {
- return false;
- }
- public function isDecorated(): bool
- {
- return false;
- }
- public function setDecorated(bool $decorated): void
- {
-
- }
- public function setStyle(string $name, OutputFormatterStyleInterface $style): void
- {
-
- }
- }
|