GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 7dd43d...a21e52 )
by Cees-Jan
11:16
created

Client   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContainer() 0 4 1
A handle() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Foundation;
4
5
use League\Container\ContainerInterface;
6
use League\Tactician\CommandBus;
7
8
final class Client
9
{
10
    /**
11
     * @var ContainerInterface
12
     */
13
    private $container;
14
15
    /**
16
     * @var CommandBus
17
     */
18
    private $commandBus;
19
20
    /**
21
     * Client constructor.
22
     * @param ContainerInterface $container
23
     * @param CommandBus $commandBus
24
     */
25
    public function __construct(ContainerInterface $container, CommandBus $commandBus)
26
    {
27
        $this->container = $container;
28
        $this->commandBus = $commandBus;
29
    }
30
31
    /**
32
     * @return ContainerInterface
33
     */
34
    public function getContainer(): ContainerInterface
35
    {
36
        return $this->container;
37
    }
38
39
    public function handle($command)
40
    {
41
        return $this->commandBus->handle($command);
42
    }
43
}
44