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

PhpCsTool   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 67
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getErrorMessage() 0 4 1
A getFiles() 0 4 1
A getStandard() 0 4 1
A getIgnore() 0 4 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