Passed
Push — master ( 82e8fa...0bc96f )
by Hector Luis
03:27
created

Tactician   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A provide() 0 6 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Application Use Case Class
5
 * @author Ticaje <[email protected]>
6
 */
7
8
namespace Ticaje\Hexagonal\Application\Implementors\UseCase\Bus;
9
10
use League\Tactician\CommandBus;
11
use League\Tactician\Setup\QuickStart as BusBootstrapper;
12
use Ticaje\Hexagonal\Application\Signatures\UseCase\ImplementorInterface;
13
14
/**
15
 * Class Tactician
16
 * @package Ticaje\Hexagonal\Application\Implementors\UseCase\Bus
17
 * This is specific bus implementation, in this case it use Tactician agency implementation.
18
 */
19
class Tactician implements ImplementorInterface
20
{
21
    /**
22
     * @inheritDoc
23
     */
24
    public function provide(array $machinery)
25
    {
26
        /** @var CommandBus $result */
27
        $result = BusBootstrapper::create($machinery);
28
29
        return $result;
30
    }
31
}
32