CommandHandled   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace League\Tactician\CommandEvents\Event;
4
5
use League\Event\Event;
6
7
/**
8
 * Emitted when a command is handled
9
 */
10
final class CommandHandled extends Event implements CommandEvent
11
{
12
    use HasCommand;
13
14
    /**
15
     * @param object $command
16
     */
17 6
    public function __construct($command)
18
    {
19 6
        $this->command = $command;
20
21 6
        parent::__construct('command.handled');
22 6
    }
23
}
24