Output   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessages() 0 3 1
A doWrite() 0 3 1
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
}