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.

Logger   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 29
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A close() 0 3 1
A closed() 0 3 1
A __construct() 0 6 1
A channel() 0 5 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Client;
5
6
use Innmind\AMQP\Client as ClientInterface;
7
use Psr\Log\LoggerInterface;
8
9
final class Logger implements ClientInterface
10
{
11
    private $client;
12
    private $logger;
13
14 4
    public function __construct(
15
        ClientInterface $client,
16
        LoggerInterface $logger
17
    ) {
18 4
        $this->client = $client;
19 4
        $this->logger = $logger;
20 4
    }
21
22 2
    public function channel(): Channel
23
    {
24 2
        return new Channel\Logger(
25 2
            $this->client->channel(),
26 2
            $this->logger
27
        );
28
    }
29
30 2
    public function closed(): bool
31
    {
32 2
        return $this->client->closed();
33
    }
34
35 2
    public function close(): void
36
    {
37 2
        $this->client->close();
38 2
    }
39
}
40