ReceivedScheduledCommand::getId()   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 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