ReceivedCommand::getSerialized()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace MGDigital\BusQue;
4
5
final class ReceivedCommand
6
{
7
8
    private $queueName;
9
    private $id;
10
    private $serialized;
11
12 3
    public function __construct(string $queueName, string $id, string $serialized)
13
    {
14 3
        $this->queueName = $queueName;
15 3
        $this->id = $id;
16 3
        $this->serialized = $serialized;
17 3
    }
18
19 3
    public function getQueueName(): string
20
    {
21 3
        return $this->queueName;
22
    }
23
24 3
    public function getId(): string
25
    {
26 3
        return $this->id;
27
    }
28
29 3
    public function getSerialized(): string
30
    {
31 3
        return $this->serialized;
32
    }
33
}
34