Completed
Push — master ( c3d3d1...acc9c4 )
by BruceScrutinizer
02:09
created

ResultCollectorReadable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace NamespaceProtector\Result;
4
5
final class ResultCollectorReadable implements ResultCollectorInterface
6
{
7
    /** @var ResultCollector */
8
    private $resultCollector;
9
10
    public function __construct(ResultCollector $resultCollector)
11
    {
12
        $this->resultCollector = $resultCollector;
13
    }
14
15
    /** @return  array<ResultInterface>  */
16
    public function get(): array
17
    {
18
        return $this->resultCollector->get();
19
    }
20
}
21