Completed
Push — master ( d4953c...26fc7b )
by personal
07:00 queued 04:53
created

TestOutput::clearln()   A

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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * (c) Jean-François Lépine <https://twitter.com/Halleck45>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Hal\Component\Output;
11
12
/**
13
 * Class CliOutput
14
 * @package Hal\Component\Issue
15
 */
16
class TestOutput implements Output
17
{
18
    public $output;
19
    public $err;
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function writeln($message)
25
    {
26
        $this->write(PHP_EOL . $message);
27
        return $this;
28
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33
    public function write($message)
34
    {
35
        $this->output .= $message;
36
        return $this;
37
    }
38
39
    /**
40
     * @inheritdoc
41
     */
42
    public function err($message)
43
    {
44
        $this->err .= $message;
45
        return $this;
46
    }
47
48
    /**
49
     * @inheritdoc
50
     */
51
    public function clearln()
52
    {
53
    }
54
}
55
56