CommandConfigureEvent::command()   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\InputDefinition;
6
use Symfony\Component\EventDispatcher\Event;
7
8
final class CommandConfigureEvent extends Event
9
{
10
11
    /**
12
     * @var CommandInterface
13
     */
14
    private $command;
15
16
    /**
17
     * @var InputDefinition
18
     */
19
    private $inputDefinition;
20
21
    public function __construct(CommandInterface $command, InputDefinition $inputDefinition)
22
    {
23
        $this->command = $command;
24
        $this->inputDefinition = $inputDefinition;
25
    }
26
27
    public function command(): CommandInterface
28
    {
29
        return $this->command;
30
    }
31
32
    /**
33
     * @return InputDefinition
34
     */
35
    public function inputDefinition(): InputDefinition
36
    {
37
        return $this->inputDefinition;
38
    }
39
40
}