Event::getApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace N98\Magento\Application\Console;
4
5
use N98\Magento\Application;
6
use Symfony\Component\EventDispatcher\Event as BaseEvent;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
10
11
class Event extends BaseEvent
12
{
13
    /**
14
     * @var Application
15
     */
16
    protected $application;
17
18
    /**
19
     * @var InputInterface
20
     */
21
    protected $input;
22
23
    /**
24
     * @var OutputInterface
25
     */
26
    protected $output;
27
28
    public function __construct(Application $application, InputInterface $input, OutputInterface $output)
29
    {
30
        $this->application = $application;
31
        $this->input = $input;
32
        $this->output = $output;
33
    }
34
35
    /**
36
     * Gets the input instance.
37
     *
38
     * @return InputInterface An InputInterface instance
39
     */
40
    public function getInput()
41
    {
42
        return $this->input;
43
    }
44
45
    /**
46
     * Gets the output instance.
47
     *
48
     * @return OutputInterface An OutputInterface instance
49
     */
50
    public function getOutput()
51
    {
52
        return $this->output;
53
    }
54
55
    /**
56
     * @return Application
57
     */
58
    public function getApplication()
59
    {
60
        return $this->application;
61
    }
62
}
63