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

TacticianCommandBus::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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