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

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Client\Channel;
5
6
use Innmind\AMQP\Client\Channel as ChannelInterface;
7
use Psr\Log\LoggerInterface;
8
9
final class Logger implements ChannelInterface
10
{
11
    private $channel;
12
    private $basic;
13
14 4
    public function __construct(
15
        ChannelInterface $channel,
16
        LoggerInterface $logger
17
    ) {
18 4
        $this->channel = $channel;
19 4
        $this->basic = new Basic\Logger(
20 4
            $channel->basic(),
21 2
            $logger
22
        );
23 4
    }
24
25 2
    public function exchange(): Exchange
26
    {
27 2
        return $this->channel->exchange();
28
    }
29
30 2
    public function queue(): Queue
31
    {
32 2
        return $this->channel->queue();
33
    }
34
35 2
    public function basic(): Basic
36
    {
37 2
        return $this->basic;
38
    }
39
40 2
    public function transaction(): Transaction
41
    {
42 2
        return $this->channel->transaction();
43
    }
44
45 2
    public function closed(): bool
46
    {
47 2
        return $this->channel->closed();
48
    }
49
50 2
    public function close(): void
51
    {
52 2
        $this->channel->close();
53 2
    }
54
}
55