Output::doWrite()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Quantick\DeployMigration\Lib\Console;
5
6
7
class Output extends \Symfony\Component\Console\Output\Output
8
{
9
    private $messages = [];
10
11
    public function getMessages()
12
    {
13
        return $this->messages;
14
    }
15
16
    /**
17
     * Writes a message to the output.
18
     *
19
     * @param string $message A message to write to the output
20
     * @param bool $newline Whether to add a newline or not
21
     */
22
    protected function doWrite($message, $newline)
23
    {
24
        $this->messages[] = $message;
25
    }
26
}