Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class CommandWasCreated extends Event implements \Saci\Console\Domain\Events\CommandWasCreated |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var Command |
||
20 | */ |
||
21 | private $command; |
||
22 | |||
23 | 3 | public function __construct(Command $command) |
|
24 | { |
||
25 | |||
26 | 3 | $this->command = $command; |
|
27 | 3 | } |
|
28 | |||
29 | /** |
||
30 | * @return Command |
||
31 | */ |
||
32 | 1 | public function getCommand(): Command |
|
33 | { |
||
34 | 1 | return $this->command; |
|
35 | } |
||
36 | |||
37 | 1 | public function getName(): string |
|
40 | } |
||
41 | } |