Completed
Push — master ( f7eb77...bdcf7d )
by Tomáš
03:24
created

Php7CodeSnifferCommand::getSniffs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of Symplify
5
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
6
 */
7
8
namespace Symplify\PHP7_CodeSniffer;
9
10
final class Php7CodeSnifferCommand
11
{
12
    /**
13
     * @var array
14
     */
15
    private $source;
16
17
    /**
18
     * @var array
19
     */
20
    private $standards;
21
22
    /**
23
     * @var array
24
     */
25
    private $sniffs;
26
27
    /**
28
     * @var array
29
     */
30
    private $excludedSniffs;
31
32
    /**
33
     * @var bool
34
     */
35
    private $isFixer;
36
37
    public function __construct(
38
        array $source,
39
        array $standards,
40
        array $sniffs,
41
        array $excludedSniffs,
42
        bool $isFixer
43
    ) {
44
        $this->source = $source;
45
        $this->standards = $standards;
46
        $this->sniffs = $sniffs;
47
        $this->excludedSniffs = $excludedSniffs;
48
        $this->isFixer = $isFixer;
49
    }
50
51
    public function getSource() : array
52
    {
53
        return $this->source;
54
    }
55
56
    public function getStandards() : array
57
    {
58
        return $this->standards;
59
    }
60
61
    public function getSniffs() : array
62
    {
63
        return $this->sniffs;
64
    }
65
66
    public function getExcludedSniffs() : array
67
    {
68
        return $this->excludedSniffs;
69
    }
70
71
    public function isFixer() : bool
72
    {
73
        return $this->isFixer;
74
    }
75
}
76