Completed
Push — master ( d308b8...b73d2a )
by Alessandro
08:43
created

TestResultWithSymbolFormat::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 5
1
<?php
2
3
4
namespace Paraunit\TestResult;
5
6
/**
7
 * Class TestResultWithSymbolFormat
8
 * @package Paraunit\TestResult
9
 */
10
class TestResultWithSymbolFormat extends TestResultFormat
11
{
12
    /** @var string */
13
    private $testResultSymbol;
14
15
    /**
16
     * TestResultFormat constructor.
17
     * @param string $testResultSymbol
18
     * @param string $tag
19
     * @param string $title
20
     * @param bool $printTestOutput
21
     * @param bool $printFilesRecap
22
     */
23
    public function __construct($testResultSymbol, $tag, $title, $printTestOutput = true, $printFilesRecap = true)
24
    {
25
        parent::__construct($tag, $title, $printTestOutput, $printFilesRecap);
26
        $this->testResultSymbol = $testResultSymbol;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getTestResultSymbol()
33
    {
34
        return $this->testResultSymbol;
35
    }
36
}
37