TestResultList::getTestResultContainers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\TestResult;
6
7
/**
8
 * Class TestResultList
9
 * @package Paraunit\TestResult
10
 */
11
class TestResultList
12
{
13
    /** @var TestResultContainer[] */
14
    private $testResultContainers;
15
16 41
    public function __construct()
17
    {
18 41
        $this->testResultContainers = [];
19
    }
20
21 41
    public function addContainer(TestResultContainer $container)
22
    {
23 41
        $this->testResultContainers[] = $container;
24
    }
25
26
    /**
27
     * @return TestResultContainer[]
28
     */
29 41
    public function getTestResultContainers(): array
30
    {
31 41
        return $this->testResultContainers;
32
    }
33
}
34