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 7

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 44
ccs 18
cts 18
cp 1
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A queue() 0 3 1
A exchange() 0 3 1
A close() 0 3 1
A basic() 0 3 1
A transaction() 0 3 1
A closed() 0 3 1
A __construct() 0 8 1
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