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

TestResultList   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 26
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A addParser() 0 4 1
A getTestResultContainers() 0 4 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