TestResultWithSymbolFormat   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10

2 Methods

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