Completed
Push — master ( c8145b...74d784 )
by Alessandro
07:46
created

TestResultList::addParser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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