Completed
Pull Request — master (#85)
by
unknown
08:04
created

PhpCsToolCommand::getErrorMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
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 PhpGitHooks\Module\PhpCs\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class PhpCsToolCommand implements CommandInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    private $files;
13
    /**
14
     * @var string
15
     */
16
    private $standard;
17
    /**
18
     * @var string
19
     */
20
    private $errorMessage;
21
    /**
22
     * @var string
23
     */
24
    private $ignore;
25
26
    /**
27
     * PhpCsToolCommand constructor.
28
     *
29 3
     * @param array  $files
30
     * @param string $standard
31 3
     * @param string $errorMessage
32 3
     */
33 3
    public function __construct(array $files, $standard, $errorMessage, $ignore)
34 3
    {
35
        $this->files = $files;
36
        $this->standard = $standard;
37
        $this->errorMessage = $errorMessage;
38
        $this->ignore = $ignore;
39 2
    }
40
41 2
    /**
42
     * @return string
43
     */
44
    public function getErrorMessage()
45
    {
46
        return $this->errorMessage;
47 2
    }
48
49 2
    /**
50
     * @return array
51
     */
52
    public function getFiles()
53
    {
54
        return $this->files;
55 2
    }
56
57 2
    /**
58
     * @return string
59
     */
60
    public function getStandard()
61
    {
62
        return $this->standard;
63
    }
64
65
    public function getIgnore()
66
    {
67
        return $this->ignore;
68
    }
69
}
70