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

RunApplicationCommand   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 61
ccs 0
cts 28
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getSource() 0 4 1
A getFixerLevels() 0 4 1
A getFixers() 0 4 1
A getExcludeFixers() 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\MultiCodingStandard\PhpCsFixer\Application\Command;
9
10
final class RunApplicationCommand
11
{
12
    /**
13
     * @var array
14
     */
15
    private $source;
16
17
    /**
18
     * @var array
19
     */
20
    private $fixerLevels;
21
22
    /**
23
     * @var array
24
     */
25
    private $fixers;
26
27
    /**
28
     * @var array
29
     */
30
    private $excludeFixers;
31
32
    /**
33
     * @var bool
34
     */
35
    private $isFixer;
36
37
    public function __construct(array $source, array $fixerLevels, array $fixers, array $excludeFixers, bool $isFixer)
38
    {
39
        $this->source = $source;
40
        $this->fixerLevels = $fixerLevels;
41
        $this->fixers = $fixers;
42
        $this->excludeFixers = $excludeFixers;
43
        $this->isFixer = $isFixer;
44
    }
45
46
    public function getSource(): array
47
    {
48
        return $this->source;
49
    }
50
51
    public function getFixerLevels(): array
52
    {
53
        return $this->fixerLevels;
54
    }
55
56
    public function getFixers(): array
57
    {
58
        return $this->fixers;
59
    }
60
61
    public function getExcludeFixers(): array
62
    {
63
        return $this->excludeFixers;
64
    }
65
66
    public function isFixer(): bool
67
    {
68
        return $this->isFixer;
69
    }
70
}
71