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 — develop ( 09e31d...61c73d )
by Baptiste
01:48
created

Protocol::channel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Transport\Protocol\v091;
5
6
use Innmind\AMQP\Transport\{
7
    Protocol as ProtocolInterface,
8
    Protocol\Version,
9
    Protocol\Connection as ConnectionInterface,
10
    Protocol\Channel as ChannelInterface,
11
    Protocol\Exchange as ExchangeInterface,
12
    Protocol\Queue as QueueInterface,
13
    Protocol\Basic as BasicInterface,
14
    Protocol\Transaction as TransactionInterface,
15
    Frame\Method
16
};
17
use Innmind\Immutable\{
18
    Str,
19
    StreamInterface
20
};
21
22
final class Protocol implements ProtocolInterface
23
{
24
    private $version;
25
    private $read;
26
    private $connection;
27
    private $channel;
28
    private $exchange;
29
    private $queue;
30
    private $basic;
31
    private $transaction;
32
33 1
    public function __construct()
34
    {
35 1
        $this->version = new Version(0, 9, 1);
36 1
        $this->read = new Reader;
37 1
        $this->connection = new Connection;
38 1
        $this->channel = new Channel;
39 1
        $this->exchange = new Exchange;
40 1
        $this->queue = new Queue;
41 1
        $this->basic = new Basic;
42 1
        $this->transaction = new Transaction;
43 1
    }
44
45 1
    public function version(): Version
46
    {
47 1
        return $this->version;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function read(Method $method, Str $arguments): StreamInterface
54
    {
55
        return ($this->read)($method, $arguments);
56
    }
57
58 1
    public function connection(): ConnectionInterface
59
    {
60 1
        return $this->connection;
61
    }
62
63 1
    public function channel(): ChannelInterface
64
    {
65 1
        return $this->channel;
66
    }
67
68 1
    public function exchange(): ExchangeInterface
69
    {
70 1
        return $this->exchange;
71
    }
72
73 1
    public function queue(): QueueInterface
74
    {
75 1
        return $this->queue;
76
    }
77
78 1
    public function basic(): BasicInterface
79
    {
80 1
        return $this->basic;
81
    }
82
83 1
    public function transaction(): TransactionInterface
84
    {
85 1
        return $this->transaction;
86
    }
87
}
88