Symfony\Component\Console\Formatter\OutputFormatter::setDecorated PHP Method

setDecorated() public method

Sets the decorated flag.
public setDecorated ( boolean $decorated )
$decorated boolean Whether to decorate the messages or not
    public function setDecorated($decorated)
    {
        $this->decorated = (bool) $decorated;
    }

Usage Example

コード例 #1
0
ファイル: AnsiFormatter.php プロジェクト: webmozart/console
 /**
  * {@inheritdoc}
  */
 public function removeFormat($string)
 {
     $this->innerFormatter->setDecorated(false);
     $formatted = $this->innerFormatter->format($string);
     $this->innerFormatter->setDecorated(true);
     return $formatted;
 }
All Usage Examples Of Symfony\Component\Console\Formatter\OutputFormatter::setDecorated