zhaojs
2023-10-07 6c7bba2e05c011a3d640b6565a113204228e92e0
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;
    }
 
}