Completed
Push — master ( 835840...ce2316 )
by Pablo
02:59
created

PhpCsTool::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 4
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\PhpCs\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class PhpCsTool 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
     * @param array  $files
30
     * @param string $standard
31
     * @param string $errorMessage
32
     * @param string $ignore
33
     */
34 3
    public function __construct(array $files, $standard, $errorMessage, $ignore)
35
    {
36 3
        $this->files = $files;
37 3
        $this->standard = $standard;
38 3
        $this->errorMessage = $errorMessage;
39 3
        $this->ignore = $ignore;
40 3
    }
41
42
    /**
43
     * @return string
44
     */
45 2
    public function getErrorMessage()
46
    {
47 2
        return $this->errorMessage;
48
    }
49
50
    /**
51
     * @return array
52
     */
53 2
    public function getFiles()
54
    {
55 2
        return $this->files;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 2
    public function getStandard()
62
    {
63 2
        return $this->standard;
64
    }
65
66
    /**
67
     * @return string
68
     */
69 2
    public function getIgnore()
70
    {
71 2
        return $this->ignore;
72
    }
73
}
74