Completed
Pull Request — master (#129)
by
unknown
08:06
created

PhpUnitTool::isEnableFaces()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\PhpUnit\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7 View Code Duplication
class PhpUnitTool implements CommandInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    /**
10
     * @var bool
11
     */
12
    private $randomMode;
13
    /**
14
     * @var null|string
15
     */
16
    private $options;
17
    /**
18
     * @var string
19
     */
20
    private $errorMessage;
21
    /**
22
     * @var bool
23
     */
24
    private $enableFaces;
25
26
    /**
27
     * PhpUnitToolCommand constructor.
28
     *
29
     * @param bool $randomMode
30
     * @param string|null $options
31
     * @param string $errorMessage
32
     * @param bool $enableFaces
33
     */
34 4
    public function __construct($randomMode, $options, $errorMessage, $enableFaces)
35
    {
36 4
        $this->randomMode = $randomMode;
37 4
        $this->options = $options;
38 4
        $this->errorMessage = $errorMessage;
39 4
        $this->enableFaces = $enableFaces;
40 4
    }
41
42
    /**
43
     * @return bool
44
     */
45 2
    public function isRandomMode()
46
    {
47 2
        return $this->randomMode;
48
    }
49
50
    /**
51
     * @return null|string
52
     */
53 2
    public function getOptions()
54
    {
55 2
        return $this->options;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 2
    public function getErrorMessage()
62
    {
63 2
        return $this->errorMessage;
64
    }
65
66
    /**
67
     * @return bool
68
     */
69 2
    public function isEnableFaces()
70
    {
71 2
        return $this->enableFaces;
72
    }
73
}
74