[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <[email protected]> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Symfony\Component\Console\Formatter; 13 14 /** 15 * @author Tien Xuan Vo <[email protected]> 16 */ 17 final class NullOutputFormatter implements OutputFormatterInterface 18 { 19 private $style; 20 21 /** 22 * {@inheritdoc} 23 */ 24 public function format(?string $message): ?string 25 { 26 return null; 27 } 28 29 /** 30 * {@inheritdoc} 31 */ 32 public function getStyle(string $name): OutputFormatterStyleInterface 33 { 34 // to comply with the interface we must return a OutputFormatterStyleInterface 35 return $this->style ?? $this->style = new NullOutputFormatterStyle(); 36 } 37 38 /** 39 * {@inheritdoc} 40 */ 41 public function hasStyle(string $name): bool 42 { 43 return false; 44 } 45 46 /** 47 * {@inheritdoc} 48 */ 49 public function isDecorated(): bool 50 { 51 return false; 52 } 53 54 /** 55 * {@inheritdoc} 56 */ 57 public function setDecorated(bool $decorated): void 58 { 59 // do nothing 60 } 61 62 /** 63 * {@inheritdoc} 64 */ 65 public function setStyle(string $name, OutputFormatterStyleInterface $style): void 66 { 67 // do nothing 68 } 69 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |