Completed
Pull Request — master (#10)
by Tomáš
31:42
created

RunApplicationCommand::isFixer()   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\MultiCodingStandard\Application\Command;
9
10
final class RunApplicationCommand
11
{
12
    /**
13
     * @var array
14
     */
15
    private $source;
16
17
    /**
18
     * @var bool
19
     */
20
    private $isFixer;
21
22
    /**
23
     * @var array
24
     */
25
    private $jsonConfiguration = [];
26
27
    public function __construct(
28
        array $source,
29
        bool $isFixer,
30
        array $jsonConfiguration
31
    ) {
32
        $this->source = $source;
33
        $this->isFixer = $isFixer;
34
        $this->jsonConfiguration = $jsonConfiguration;
35
    }
36
37
    public function getSource() : array
38
    {
39
        return $this->source;
40
    }
41
42
    public function getJsonConfiguration() : array
43
    {
44
        return $this->jsonConfiguration;
45
    }
46
47
    public function isFixer() : bool
48
    {
49
        return $this->isFixer;
50
    }
51
}
52