1 | <?php |
||
5 | class Output implements Contracts\Output |
||
6 | { |
||
7 | /** |
||
8 | * @var callable |
||
9 | */ |
||
10 | protected $outputFormatter; |
||
11 | |||
12 | /** |
||
13 | * @param callable $outputFormatter |
||
14 | */ |
||
15 | public function __construct(callable $outputFormatter = null) |
||
19 | |||
20 | /** |
||
21 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
22 | * @param $message |
||
23 | * @param bool $eol |
||
24 | */ |
||
25 | public function raw(string $message, bool $eol = true): void |
||
37 | |||
38 | /** |
||
39 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
40 | * @param string $msg |
||
41 | * @param bool $eol |
||
42 | */ |
||
43 | public function error(string $msg, bool $eol = true): void |
||
47 | |||
48 | /** |
||
49 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
50 | * @param string $msg |
||
51 | * @param bool $eol |
||
52 | */ |
||
53 | public function info(string $msg, bool $eol = true): void |
||
57 | } |
||
58 |