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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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