think\console\output\Formatter::__construct PHP Method

__construct() public method

初始化命令行输出格式
public __construct ( )
    public function __construct()
    {
        $this->setStyle('error', new Style('white', 'red'));
        $this->setStyle('info', new Style('green'));
        $this->setStyle('comment', new Style('yellow'));
        $this->setStyle('question', new Style('black', 'cyan'));
        $this->setStyle('highlight', new Style('red'));
        $this->setStyle('warning', new Style('black', 'yellow'));
        $this->styleStack = new StyleStack();
    }