1 | <?php |
||
29 | class TaskOutput extends Output |
||
30 | { |
||
31 | /** |
||
32 | * The task for which this output is attached to.. |
||
33 | * |
||
34 | * @var Task |
||
35 | */ |
||
36 | private $task; |
||
37 | |||
38 | /** |
||
39 | * Create a new instance. |
||
40 | * |
||
41 | * @param Task $task The task being logged to. |
||
42 | * |
||
43 | * @param int $verbosity The verbosity level |
||
44 | * (one of the VERBOSITY constants in OutputInterface). |
||
45 | * |
||
46 | * @param bool $decorated Whether to decorate messages. |
||
47 | * |
||
48 | * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
||
49 | * |
||
50 | * @api |
||
51 | */ |
||
52 | public function __construct( |
||
62 | |||
63 | /** |
||
64 | * Fetch buffer content. |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function fetch() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | protected function doWrite($message, $newline) |
||
84 | } |
||
85 |