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 ( e189ab...b5f9de )
by Baptiste
01:57
created

Get::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Model\Basic;
5
6
final class Get
7
{
8
    private $queue;
9
    private $ack = true;
10
11 2
    public function __construct(string $queue)
12
    {
13 2
        $this->queue = $queue;
14 2
    }
15
16 1
    public function manualAcknowledge(): self
17
    {
18 1
        $self = clone $this;
19 1
        $self->ack = true;
20
21 1
        return $self;
22
    }
23
24 1
    public function autoAcknowledge(): self
25
    {
26 1
        $self = clone $this;
27 1
        $self->ack = false;
28
29 1
        return $self;
30
    }
31
32 1
    public function queue(): string
33
    {
34 1
        return $this->queue;
35
    }
36
37 2
    public function shouldAutoAcknowledge(): bool
38
    {
39 2
        return !$this->ack;
40
    }
41
}
42