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 ( e4addc...44f5b4 )
by Baptiste
23:22
created

Connection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 15
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 22
c 0
b 0
f 0
ccs 15
cts 15
cp 1
rs 9.2
cc 1
eloc 19
nc 1
nop 5
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Transport;
5
6
use Innmind\AMQP\Model\Connection\MaxFrameSize;
7
8
interface Connection
9
{
10
    public function protocol(): Protocol;
11
12
    /**
13
     * @throws FrameChannelExceedAllowedChannelNumber
14
     * @throws FrameExceedAllowedSize
15
     */
16
    public function send(Frame $frame): self;
17
18
    /**
19
     * @throws ExpectedMethodFrame When expecting a method frame but another type is received
20
     * @throws ConnectionClosed When the server sent a connection.close method
21
     * @throws UnexpectedFrame When the received frame is not one of the expected one
22
     */
23
    public function wait(string ...$names): Frame;
24
    public function maxFrameSize(): MaxFrameSize;
25
    public function close(): void;
26
    public function closed(): bool;
27
}
28