Completed
Push — master ( 23bc19...2eec4d )
by Tomáš
11:42
created

Php7CodeSnifferCommand   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 66
ccs 17
cts 17
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getSource() 0 4 1
A getStandards() 0 4 1
A getSniffs() 0 4 1
A getExcludedSniffs() 0 4 1
A isFixer() 0 4 1
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 2
    public function __construct(
38
        array $source,
39
        array $standards,
40
        array $sniffs,
41
        array $excludedSniffs,
42
        bool $isFixer
43
    ) {
44 2
        $this->source = $source;
45 2
        $this->standards = $standards;
46 2
        $this->sniffs = $sniffs;
47 2
        $this->excludedSniffs = $excludedSniffs;
48 2
        $this->isFixer = $isFixer;
49 2
    }
50
51 1
    public function getSource() : array
52
    {
53 1
        return $this->source;
54
    }
55
56 2
    public function getStandards() : array
57
    {
58 2
        return $this->standards;
59
    }
60
61 2
    public function getSniffs() : array
62
    {
63 2
        return $this->sniffs;
64
    }
65
66 2
    public function getExcludedSniffs() : array
67
    {
68 2
        return $this->excludedSniffs;
69
    }
70
71 1
    public function isFixer() : bool
72
    {
73 1
        return $this->isFixer;
74
    }
75
}
76