FindExecutableDefinitionFilesEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Deployee\Plugins\Deploy\Events;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class FindExecutableDefinitionFilesEvent extends Event
10
{
11
    /**
12
     * @var \ArrayObject
13
     */
14
    private $definitionFileCollection;
15
16
    /**
17
     * @var InputInterface
18
     */
19
    private $input;
20
21
    /**
22
     * @var OutputInterface
23
     */
24
    private $output;
25
26
    /**
27
     * @param \ArrayObject $definitionFileCollection
28
     * @param InputInterface $input
29
     * @param OutputInterface $output
30
     */
31
    public function __construct(\ArrayObject $definitionFileCollection, InputInterface $input, OutputInterface $output)
32
    {
33
        $this->definitionFileCollection = $definitionFileCollection;
34
        $this->input = $input;
35
        $this->output = $output;
36
    }
37
38
    /**
39
     * @return InputInterface
40
     */
41
    public function getInput(): InputInterface
42
    {
43
        return $this->input;
44
    }
45
46
    /**
47
     * @return \ArrayObject
48
     */
49
    public function getDefinitionFileCollection(): \ArrayObject
50
    {
51
        return $this->definitionFileCollection;
52
    }
53
54
    /**
55
     * @param \ArrayObject $definitionFileCollection
56
     */
57
    public function replaceDefinitionFileCollection(\ArrayObject $definitionFileCollection)
58
    {
59
        $this->definitionFileCollection = $definitionFileCollection;
60
    }
61
62
    /**
63
     * @return OutputInterface
64
     */
65
    public function getOutput(): OutputInterface
66
    {
67
        return $this->output;
68
    }
69
}