1 | <?php |
||
29 | class Console implements OutputInterface |
||
30 | { |
||
31 | /** |
||
32 | * Array of messages |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $buffer = array(); |
||
37 | |||
38 | /** |
||
39 | * Write the message. |
||
40 | * |
||
41 | * @param string $msg |
||
42 | * @return string |
||
43 | */ |
||
44 | 2 | public function write($msg) |
|
48 | |||
49 | /** |
||
50 | * Clear the buffer. |
||
51 | * |
||
52 | * $write allows the developer to flush the buffer without outputting. |
||
53 | * |
||
54 | * @param bool $write |
||
55 | * @return mixed |
||
56 | */ |
||
57 | 2 | public function flush($write = true) |
|
67 | |||
68 | /** |
||
69 | * Buffer a message ready for output |
||
70 | * |
||
71 | * @param string $msg |
||
72 | * @return $this |
||
73 | */ |
||
74 | 2 | public function buffer($msg) |
|
80 | } |
||
81 |