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

PhpLintTool::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\PhpLint\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7 View Code Duplication
class PhpLintTool 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 array
11
     */
12
    private $files;
13
    /**
14
     * @var string
15
     */
16
    private $errorMessage;
17
    /**
18
     * @var bool
19
     */
20
    private $enableFaces;
21
22
    /**
23
     * PhpLintToolCommand constructor.
24
     *
25
     * @param array $files
26
     * @param string $errorMessage
27
     * @param bool $enableFaces
28
     */
29 3
    public function __construct(array $files, $errorMessage, $enableFaces)
30
    {
31 3
        $this->files = $files;
32 3
        $this->errorMessage = $errorMessage;
33 3
        $this->enableFaces = $enableFaces;
34 3
    }
35
36
    /**
37
     * @return array
38
     */
39 2
    public function getFiles()
40
    {
41 2
        return $this->files;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 2
    public function getErrorMessage()
48
    {
49 2
        return $this->errorMessage;
50
    }
51
52
    /**
53
     * @return bool
54
     */
55 2
    public function isEnableFaces()
56
    {
57 2
        return $this->enableFaces;
58
    }
59
}
60