Liip\RMT\Output\Output::__construct PHP Метод

__construct() публичный Метод

public __construct ( $verbosity = self::VERBOSITY_NORMAL, $decorated = null, Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter = null )
$formatter Symfony\Component\Console\Formatter\OutputFormatterInterface
    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
    {
        // Use our own formatter
        parent::__construct($verbosity, $decorated, $formatter);
        // set some custom styles
        $this->getFormatter()->setStyle('error', new OutputFormatterStyle('white', 'red'));
        $this->getFormatter()->setStyle('green', new OutputFormatterStyle('green'));
        $this->getFormatter()->setStyle('yellow', new OutputFormatterStyle('yellow'));
        $this->getFormatter()->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
        $this->getFormatter()->setStyle('title', new OutputFormatterStyle('white', 'blue'));
    }