ReceivedScheduledCommand   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 85.71%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 36
ccs 12
cts 14
cp 0.8571
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getQueueName() 0 4 1
A getId() 0 4 1
A getSerialized() 0 4 1
A getDateTime() 0 4 1
1
<?php
2
3
namespace MGDigital\BusQue;
4
5
final class ReceivedScheduledCommand
6
{
7
8
    private $queueName;
9
    private $id;
10
    private $serialized;
11
    private $dateTime;
12
13 2
    public function __construct(string $queueName, string $id, string $serialized, \DateTimeInterface $dateTime)
14
    {
15 2
        $this->queueName = $queueName;
16 2
        $this->id = $id;
17 2
        $this->serialized = $serialized;
18 2
        $this->dateTime = $dateTime;
19 2
    }
20
21 1
    public function getQueueName(): string
22
    {
23 1
        return $this->queueName;
24
    }
25
26 2
    public function getId(): string
27
    {
28 2
        return $this->id;
29
    }
30
31 1
    public function getSerialized(): string
32
    {
33 1
        return $this->serialized;
34
    }
35
36
    public function getDateTime(): \DateTimeInterface
37
    {
38
        return $this->dateTime;
39
    }
40
}
41