CommandConfiguredEvent::command()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Cocotte\Console;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
final class CommandConfiguredEvent extends Event
8
{
9
10
    /**
11
     * @var CommandInterface
12
     */
13
    private $command;
14
15
    public function __construct(CommandInterface $command)
16
    {
17
        $this->command = $command;
18
    }
19
20
    public function command(): CommandInterface
21
    {
22
        return $this->command;
23
    }
24
25
}