RunApplicationCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 11
nc 1
nop 5
crap 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\Application\Command;
9
10
final class RunApplicationCommand
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 2
    public function getSource() : array
52
    {
53 2
        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 2
    public function isFixer() : bool
72
    {
73 2
        return $this->isFixer;
74
    }
75
}
76