Completed
Pull Request — master (#37)
by Alessandro
02:23
created

NullOutputContainer   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 41
ccs 0
cts 19
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A addToOutputBuffer() 0 3 1
A getFileNames() 0 4 1
A getOutputBuffer() 0 4 1
A countFiles() 0 4 1
A countMessages() 0 4 1
1
<?php
2
3
namespace Paraunit\Output;
4
5
use Paraunit\Process\ProcessWithResultsInterface;
6
7
/**
8
 * Class NullOutputContainer
9
 * @package Paraunit\Output
10
 */
11
class NullOutputContainer extends AbstractOutputContainer implements OutputContainerInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function addToOutputBuffer(ProcessWithResultsInterface $process, $message)
17
    {
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getFileNames()
24
    {
25
        return array();
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getOutputBuffer()
32
    {
33
        return array();
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function countFiles()
40
    {
41
        return 0;
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function countMessages()
48
    {
49
        return 0;
50
    }
51
}
52