Completed
Pull Request — master (#1382)
by
unknown
13:18 queued 07:25
created

GetInputEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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 input arguments and options
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