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.

Locked::type()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\AMQP\Model\Basic\Message;
5
6
use Innmind\AMQP\{
7
    Model\Basic\Message,
8
    Exception\MessageLocked,
9
};
10
use Innmind\TimeContinuum\{
11
    PointInTimeInterface,
12
    ElapsedPeriod,
13
};
14
use Innmind\Immutable\{
15
    MapInterface,
16
    Str,
17
};
18
19
final class Locked implements Message
20
{
21
    private $message;
22
23 80
    public function __construct(Message $message)
24
    {
25 80
        $this->message = $message;
26 80
    }
27
28 4
    public function hasContentType(): bool
29
    {
30 4
        return $this->message->hasContentType();
31
    }
32
33 4
    public function contentType(): ContentType
34
    {
35 4
        return $this->message->contentType();
36
    }
37
38 2
    public function withContentType(ContentType $contentType): Message
39
    {
40 2
        throw new MessageLocked;
41
    }
42
43 4
    public function hasContentEncoding(): bool
44
    {
45 4
        return $this->message->hasContentEncoding();
46
    }
47
48 4
    public function contentEncoding(): ContentEncoding
49
    {
50 4
        return $this->message->contentEncoding();
51
    }
52
53 2
    public function withContentEncoding(ContentEncoding $contentEncoding): Message
54
    {
55 2
        throw new MessageLocked;
56
    }
57
58 4
    public function hasHeaders(): bool
59
    {
60 4
        return $this->message->hasHeaders();
61
    }
62
63
    /**
64
     * {@inheritdoc}
65
     */
66 4
    public function headers(): MapInterface
67
    {
68 4
        return $this->message->headers();
69
    }
70
71 2
    public function withHeaders(MapInterface $headers): Message
72
    {
73 2
        throw new MessageLocked;
74
    }
75
76 4
    public function hasDeliveryMode(): bool
77
    {
78 4
        return $this->message->hasDeliveryMode();
79
    }
80
81 4
    public function deliveryMode(): DeliveryMode
82
    {
83 4
        return $this->message->deliveryMode();
84
    }
85
86 2
    public function withDeliveryMode(DeliveryMode $deliveryMode): Message
87
    {
88 2
        throw new MessageLocked;
89
    }
90
91 4
    public function hasPriority(): bool
92
    {
93 4
        return $this->message->hasPriority();
94
    }
95
96 4
    public function priority(): Priority
97
    {
98 4
        return $this->message->priority();
99
    }
100
101 2
    public function withPriority(Priority $priority): Message
102
    {
103 2
        throw new MessageLocked;
104
    }
105
106 4
    public function hasCorrelationId(): bool
107
    {
108 4
        return $this->message->hasCorrelationId();
109
    }
110
111 4
    public function correlationId(): CorrelationId
112
    {
113 4
        return $this->message->correlationId();
114
    }
115
116 2
    public function withCorrelationId(CorrelationId $correlationId): Message
117
    {
118 2
        throw new MessageLocked;
119
    }
120
121 4
    public function hasReplyTo(): bool
122
    {
123 4
        return $this->message->hasReplyTo();
124
    }
125
126 4
    public function replyTo(): ReplyTo
127
    {
128 4
        return $this->message->replyTo();
129
    }
130
131 2
    public function withReplyTo(ReplyTo $replyTo): Message
132
    {
133 2
        throw new MessageLocked;
134
    }
135
136 4
    public function hasExpiration(): bool
137
    {
138 4
        return $this->message->hasExpiration();
139
    }
140
141 4
    public function expiration(): ElapsedPeriod
142
    {
143 4
        return $this->message->expiration();
144
    }
145
146 2
    public function withExpiration(ElapsedPeriod $expiration): Message
147
    {
148 2
        throw new MessageLocked;
149
    }
150
151 4
    public function hasId(): bool
152
    {
153 4
        return $this->message->hasId();
154
    }
155
156 4
    public function id(): Id
157
    {
158 4
        return $this->message->id();
159
    }
160
161 2
    public function withId(Id $id): Message
162
    {
163 2
        throw new MessageLocked;
164
    }
165
166 4
    public function hasTimestamp(): bool
167
    {
168 4
        return $this->message->hasTimestamp();
169
    }
170
171 4
    public function timestamp(): PointInTimeInterface
172
    {
173 4
        return $this->message->timestamp();
174
    }
175
176 2
    public function withTimestamp(PointInTimeInterface $timestamp): Message
177
    {
178 2
        throw new MessageLocked;
179
    }
180
181 4
    public function hasType(): bool
182
    {
183 4
        return $this->message->hasType();
184
    }
185
186 4
    public function type(): Type
187
    {
188 4
        return $this->message->type();
189
    }
190
191 2
    public function withType(Type $type): Message
192
    {
193 2
        throw new MessageLocked;
194
    }
195
196 4
    public function hasUserId(): bool
197
    {
198 4
        return $this->message->hasUserId();
199
    }
200
201 4
    public function userId(): UserId
202
    {
203 4
        return $this->message->userId();
204
    }
205
206 2
    public function withUserId(UserId $userId): Message
207
    {
208 2
        throw new MessageLocked;
209
    }
210
211 4
    public function hasAppId(): bool
212
    {
213 4
        return $this->message->hasAppId();
214
    }
215
216 4
    public function appId(): AppId
217
    {
218 4
        return $this->message->appId();
219
    }
220
221 2
    public function withAppId(AppId $appId): Message
222
    {
223 2
        throw new MessageLocked;
224
    }
225
226 20
    public function body(): Str
227
    {
228 20
        return $this->message->body();
229
    }
230
}
231