[ 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\Output; 13 14 use Symfony\Component\Console\Formatter\NullOutputFormatter; 15 use Symfony\Component\Console\Formatter\OutputFormatterInterface; 16 17 /** 18 * NullOutput suppresses all output. 19 * 20 * $output = new NullOutput(); 21 * 22 * @author Fabien Potencier <[email protected]> 23 * @author Tobias Schultze <http://tobion.de> 24 */ 25 class NullOutput implements OutputInterface 26 { 27 private $formatter; 28 29 /** 30 * {@inheritdoc} 31 */ 32 public function setFormatter(OutputFormatterInterface $formatter) 33 { 34 // do nothing 35 } 36 37 /** 38 * {@inheritdoc} 39 */ 40 public function getFormatter() 41 { 42 if ($this->formatter) { 43 return $this->formatter; 44 } 45 // to comply with the interface we must return a OutputFormatterInterface 46 return $this->formatter = new NullOutputFormatter(); 47 } 48 49 /** 50 * {@inheritdoc} 51 */ 52 public function setDecorated(bool $decorated) 53 { 54 // do nothing 55 } 56 57 /** 58 * {@inheritdoc} 59 */ 60 public function isDecorated() 61 { 62 return false; 63 } 64 65 /** 66 * {@inheritdoc} 67 */ 68 public function setVerbosity(int $level) 69 { 70 // do nothing 71 } 72 73 /** 74 * {@inheritdoc} 75 */ 76 public function getVerbosity() 77 { 78 return self::VERBOSITY_QUIET; 79 } 80 81 /** 82 * {@inheritdoc} 83 */ 84 public function isQuiet() 85 { 86 return true; 87 } 88 89 /** 90 * {@inheritdoc} 91 */ 92 public function isVerbose() 93 { 94 return false; 95 } 96 97 /** 98 * {@inheritdoc} 99 */ 100 public function isVeryVerbose() 101 { 102 return false; 103 } 104 105 /** 106 * {@inheritdoc} 107 */ 108 public function isDebug() 109 { 110 return false; 111 } 112 113 /** 114 * {@inheritdoc} 115 */ 116 public function writeln($messages, int $options = self::OUTPUT_NORMAL) 117 { 118 // do nothing 119 } 120 121 /** 122 * {@inheritdoc} 123 */ 124 public function write($messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) 125 { 126 // do nothing 127 } 128 }
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 |