ReceivedCommand   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getQueueName() 0 4 1
A getId() 0 4 1
A getSerialized() 0 4 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