123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace Symfony\Component\Console\Formatter;
- final class NullOutputFormatter implements OutputFormatterInterface
- {
- private $style;
-
- public function format(?string $message): ?string
- {
- return null;
- }
-
- public function getStyle(string $name): OutputFormatterStyleInterface
- {
-
- return $this->style ?? $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
- {
-
- }
- }
|