Completed
Pull Request — master (#1382)
by
unknown
15:40
created

GetInputEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getInput() 0 4 1
1
<?php
2
3
namespace Phinx\Event;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
class GetInputEvent extends Event
9
{
10
    /**
11
     * @var InputInterface
12
     */
13
    private $input;
14
15
    /**
16
     * GetInputEvent constructor.
17
     *
18
     * @param InputInterface $input
19
     */
20
    public function __construct(InputInterface $input)
21
    {
22
        $this->input = $input;
23
    }
24
25
    /**
26
     * Returns an input stream
27
     *
28
     * @return InputInterface
29
     */
30
    public function getInput()
31
    {
32
        return $this->input;
33
    }
34
}
35