TestResultWithSymbolFormat::getTestResultSymbol()   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 TestResultWithSymbolFormat
9
 * @package Paraunit\TestResult
10
 */
11
class TestResultWithSymbolFormat extends TestResultFormat
12
{
13
    /** @var string */
14
    private $testResultSymbol;
15
16
    /**
17
     * TestResultFormat constructor.
18
     * @param string $testResultSymbol
19
     * @param string $tag
20
     * @param string $title
21
     * @param bool $printTestOutput
22
     * @param bool $printFilesRecap
23
     */
24 57
    public function __construct(
25
        string $testResultSymbol,
26
        string $tag,
27
        string $title,
28
        bool $printTestOutput = true,
29
        bool $printFilesRecap = true
30
    ) {
31 57
        parent::__construct($tag, $title, $printTestOutput, $printFilesRecap);
32 57
        $this->testResultSymbol = $testResultSymbol;
33
    }
34
35 42
    public function getTestResultSymbol(): string
36
    {
37 42
        return $this->testResultSymbol;
38
    }
39
}
40