Event   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 52
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getInput() 0 4 1
A getOutput() 0 4 1
A getApplication() 0 4 1
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