Completed
Push — master ( d4953c...26fc7b )
by personal
04:50
created

TestOutput   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 39
rs 10
wmc 4
lcom 2
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A writeln() 0 5 1
A write() 0 5 1
A err() 0 5 1
A clearln() 0 3 1
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