CommandConfiguredEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A command() 0 3 1
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
}