CommandInteractEvent::input()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Cocotte\Console;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
final class CommandInteractEvent extends Event
9
{
10
11
    /**
12
     * @var CommandInterface
13
     */
14
    private $command;
15
16
    /**
17
     * @var InputInterface
18
     */
19
    private $input;
20
21
    public function __construct(CommandInterface $command, InputInterface $input)
22
    {
23
        $this->command = $command;
24
        $this->input = $input;
25
    }
26
27
    public function command(): CommandInterface
28
    {
29
        return $this->command;
30
    }
31
32
    public function input(): InputInterface
33
    {
34
        return $this->input;
35
    }
36
37
}