Test Failed
Push — master ( d9d4f1...04fcd4 )
by Evgenii
06:20
created

DalliOrderStatusEvent::getTimestamp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace floor12\DalliApi\Models\Response;
4
5
class DalliOrderStatusEvent
6
{
7
    /**
8
     * @var string
9
     */
10
    private $statusId;
11
    /**
12
     * @var string
13
     */
14
    protected $eventStore;
15
    /**
16
     * @var int
17
     */
18
    private $timestamp;
19
20
    public function __construct(
21
        string $statusId,
22
        string $eventStore,
23
        int    $timestamp,
24
    )
25
{
26
    $this->statusId = $statusId;
27
    $this->eventStore = $eventStore;
28
    $this->timestamp = $timestamp;
29
}
30
31
32
    public function getStatusId(): string
33
    {
34
        return $this->statusId;
35
    }
36
37
    public function getTimestamp(): int
38
    {
39
        return $this->timestamp;
40
    }
41
42
    public function getEventStore(): string
43
    {
44
        return $this->eventStore;
45
    }
46
}