Webmozart\Console\Api\IO\Output::setQuiet PHP Method

setQuiet() public method

Sets whether output should be suppressed completely.
public setQuiet ( boolean $quiet )
$quiet boolean Pass `true` to suppress all output and `false` otherwise.
    public function setQuiet($quiet)
    {
        $this->quiet = (bool) $quiet;
    }

Usage Example

示例#1
0
文件: IO.php 项目: webmozart/console
 /**
  * Sets whether all output should be suppressed.
  *
  * @param bool $quiet Pass `true` to suppress all output and `false`
  *                    otherwise.
  */
 public function setQuiet($quiet)
 {
     $this->output->setQuiet($quiet);
     $this->errorOutput->setQuiet($quiet);
 }