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

Ack   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 28
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A multiple() 0 7 1
A deliveryTag() 0 4 1
A isMultiple() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Model\Basic;
5
6
/**
7
 * Acknowledge
8
 */
9
final class Ack
10
{
11
    private $deliveryTag;
12
    private $multiple = false;
13
14 2
    public function __construct(int $deliveryTag)
15
    {
16 2
        $this->deliveryTag = $deliveryTag;
17 2
    }
18
19 1
    public static function multiple(int $deliveryTag): self
20
    {
21 1
        $self = new self($deliveryTag);
22 1
        $self->multiple = true;
23
24 1
        return $self;
25
    }
26
27 2
    public function deliveryTag(): int
28
    {
29 2
        return $this->deliveryTag;
30
    }
31
32 2
    public function isMultiple(): bool
33
    {
34 2
        return $this->multiple;
35
    }
36
}
37