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.

Unbinding   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A exchange() 0 3 1
A routingKey() 0 3 1
A arguments() 0 3 1
A queue() 0 3 1
A __construct() 0 6 1
A withArgument() 0 6 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Model\Queue;
5
6
use Innmind\Immutable\{
7
    MapInterface,
8
    Map,
9
};
10
11
final class Unbinding
12
{
13
    private $exchange;
14
    private $queue;
15
    private $routingKey;
16
    private $arguments;
17
18 10
    public function __construct(string $exchange, string $queue, string $routingKey = '')
19
    {
20 10
        $this->exchange = $exchange;
21 10
        $this->queue = $queue;
22 10
        $this->routingKey = $routingKey;
23 10
        $this->arguments = new Map('string', 'mixed');
24 10
    }
25
26 4
    public function withArgument(string $key, $value): self
27
    {
28 4
        $self = clone $this;
29 4
        $self->arguments = $self->arguments->put($key, $value);
30
31 4
        return $self;
32
    }
33
34 6
    public function exchange(): string
35
    {
36 6
        return $this->exchange;
37
    }
38
39 6
    public function queue(): string
40
    {
41 6
        return $this->queue;
42
    }
43
44 6
    public function routingKey(): string
45
    {
46 6
        return $this->routingKey;
47
    }
48
49
    /**
50
     * @return MapInterface<string, mixed>
51
     */
52 8
    public function arguments(): MapInterface
53
    {
54 8
        return $this->arguments;
55
    }
56
}
57