Completed
Push — master ( 71f966...a7254e )
by BruceScrutinizer
08:15
created

ResultProcessor   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 22
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOutputLines() 0 3 1
A getResultCollectionReadable() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace NamespaceProtector\Result;
4
5
class ResultProcessor implements ResultProcessorInterface
6
{
7
    /** @var array */
8
    private $lines;
9
10
    /** @var ResultCollectorReadable */
11
    private $resultCollectorReadable;
12
13
    public function __construct(array $lines, ResultCollectorReadable $resultCollectorReadable)
14
    {
15
        $this->lines = $lines;
16
        $this->resultCollectorReadable = $resultCollectorReadable;
17
    }
18
19
    public function getOutputLines(): array
20
    {
21
        return $this->lines;
22
    }
23
24
    public function getResultCollectionReadable(): ResultCollectorReadable
25
    {
26
        return $this->resultCollectorReadable;
27
    }
28
}
29