Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
43 | public function performSpecialActions(ClientInterface $client, WritableContentInterface $originalRequest): bool |
||
44 | { |
||
45 | /** @var Unsubscribe $originalRequest */ |
||
46 | if ($this->packetIdentifier !== $originalRequest->getPacketIdentifier()) { |
||
47 | throw new UnmatchingPacketIdentifiers('Packet identifiers do not match!'); |
||
48 | } |
||
49 | |||
50 | $client->updateLastCommunication(); |
||
51 | return true; |
||
52 | } |
||
62 |