审查视图

addons/command/library/Output.php 422 字节
王智 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php

namespace addons\command\library;

/**
 * Class Output
 */
class Output extends \think\console\Output
{

    protected $message = [];

    public function __construct($driver = 'console')
    {
        parent::__construct($driver);
    }

    protected function block($style, $message)
    {
        $this->message[] = $message;
    }

    public function getMessage()
    {
        return $this->message;
    }

}