RunApplicationCommand::getJsonConfiguration()   A
last analyzed

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
declare(strict_types=1);
4
5
/*
6
 * This file is part of Symplify
7
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
8
 */
9
10
namespace Symplify\MultiCodingStandard\Application\Command;
11
12
final class RunApplicationCommand
13
{
14
    /**
15
     * @var array
16
     */
17
    private $source;
18
19
    /**
20
     * @var bool
21
     */
22
    private $isFixer;
23
24
    /**
25
     * @var array
26
     */
27
    private $jsonConfiguration = [];
28
29
    public function __construct(
30
        array $source,
31
        bool $isFixer,
32
        array $jsonConfiguration
33
    ) {
34
        $this->source = $source;
35
        $this->isFixer = $isFixer;
36
        $this->jsonConfiguration = $jsonConfiguration;
37
    }
38
39
    public function getSource() : array
40
    {
41
        return $this->source;
42
    }
43
44
    public function getJsonConfiguration() : array
45
    {
46
        return $this->jsonConfiguration;
47
    }
48
49
    public function isFixer() : bool
50
    {
51
        return $this->isFixer;
52
    }
53
}
54