Completed
Push — master ( 3f2b21...64f10e )
by Alessandro
06:51
created

TestResultFormat::shouldPrintTestOutput()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
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 $tag;
13
14
    /** @var string */
15
    private $title;
16
17
    /** @var  bool */
18
    private $printTestOutput;
19
20
    /** @var  bool */
21
    private $printFilesRecap;
22
23
    /**
24
     * TestResultFormat constructor.
25
     * @param string $tag
26
     * @param string $title
27
     * @param bool $printTestOutput
28
     * @param bool $printFilesRecap
29
     */
30 59
    public function __construct($tag, $title, $printTestOutput = true, $printFilesRecap = true)
31
    {
32 59
        $this->tag = $tag;
33 59
        $this->title = $title;
34 59
        $this->printTestOutput = $printTestOutput;
35 59
        $this->printFilesRecap = $printFilesRecap;
36 59
    }
37
38
    /**
39
     * @return string
40
     */
41 27
    public function getTag()
42
    {
43 27
        return $this->tag;
44
    }
45
46
    /**
47
     * @return string
48
     */
49 14
    public function getTitle()
50
    {
51 14
        return $this->title;
52
    }
53
54
    /**
55
     * @return boolean
56
     */
57 12
    public function shouldPrintTestOutput()
58
    {
59 12
        return $this->printTestOutput;
60
    }
61
62
    /**
63
     * @return boolean
64
     */
65 12
    public function shouldPrintFilesRecap()
66
    {
67 12
        return $this->printFilesRecap;
68
    }
69
}
70