Completed
Push — master ( 0e338e...cdc67b )
by Alessandro
09:41 queued 04:45
created

TestResultFormat::getTestResultSymbol()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Paraunit\TestResult;
4
5
/**
6
 * Class TestResultContainer
7
 * @package Paraunit\TestResult
8
 */
9
class TestResultFormat
10
{
11
    /** @var string */
12
    private $testResultSymbol;
13
14
    /** @var string */
15
    private $tag;
16
17
    /** @var string */
18
    private $title;
19
20
    /** @var  bool */
21
    private $printTestOutput;
22
23
    /** @var  bool */
24
    private $printFilesRecap;
25
26
    /**
27
     * TestResultFormat constructor.
28
     * @param string $testResultSymbol
29
     * @param string $tag
30
     * @param string $title
31
     * @param bool $printTestOutput
32
     * @param bool $printFilesRecap
33
     */
34 46
    public function __construct($testResultSymbol, $tag, $title, $printTestOutput = true, $printFilesRecap = true)
35
    {
36 46
        $this->testResultSymbol = $testResultSymbol;
37 46
        $this->tag = $tag;
38 46
        $this->title = $title;
39 46
        $this->printTestOutput = $printTestOutput;
40 46
        $this->printFilesRecap = $printFilesRecap;
41 46
    }
42
43
    /**
44
     * @return string
45
     */
46 21
    public function getTestResultSymbol()
47
    {
48 21
        return $this->testResultSymbol;
49
    }
50
51
    /**
52
     * @return string
53
     */
54 18
    public function getTag()
55
    {
56 18
        return $this->tag;
57
    }
58
59
    /**
60
     * @return string
61
     */
62 9
    public function getTitle()
63
    {
64 9
        return $this->title;
65
    }
66
67
    /**
68
     * @return boolean
69
     */
70 9
    public function shouldPrintTestOutput()
71
    {
72 9
        return $this->printTestOutput;
73
    }
74
75
    /**
76
     * @return boolean
77
     */
78 9
    public function shouldPrintFilesRecap()
79
    {
80 9
        return $this->printFilesRecap;
81
    }
82
}
83