CommandBusAdapter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 4 1
1
<?php
2
3
namespace MGDigital\BusQue\Tactician;
4
5
use League\Tactician\CommandBus;
6
use MGDigital\BusQue\CommandBusAdapterInterface;
7
8
class CommandBusAdapter implements CommandBusAdapterInterface
9
{
10
11
    private $commandBus;
12
13
    public function __construct(CommandBus $commandBus)
14
    {
15
        $this->commandBus = $commandBus;
16
    }
17
18
    public function handle($command, bool $fromQueue = false)
19
    {
20
        $this->commandBus->handle($command);
21
    }
22
}
23