Completed
Push — master ( e39a6b...d536ea )
by Jakub
01:57
created

TacticianCommandBus   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handleCommand() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Eps\Req2CmdBundle\CommandBus;
5
6
use League\Tactician\CommandBus;
7
8
class TacticianCommandBus implements CommandBusInterface
9
{
10
    /**
11
     * @var CommandBus
12
     */
13
    private $commandBus;
14
15
    public function __construct(CommandBus $commandBus)
16
    {
17
        $this->commandBus = $commandBus;
18
    }
19
20
    public function handleCommand($command): void
21
    {
22
        $this->commandBus->handle($command);
23
    }
24
}
25