DeliveryStatusHistoryItem::getTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class DeliveryStatusHistoryItem
7
 * @package PimpayBundle\Model
8
 */
9
class DeliveryStatusHistoryItem
10
{
11
    /**
12
     * @var string
13
     */
14
    private $time;
15
16
    /**
17
     * @var string
18
     */
19
    private $uniformPimpayDeliveryStatus;
20
21
    /**
22
     * @var string
23
     */
24
    private $customDeliveryStatus;
25
26
    /**
27
     * @var string
28
     */
29
    private $deliveryServiceDeliveryStatus;
30
31
    /**
32
     * @return string
33
     */
34
    public function getTime(): string
35
    {
36
        return $this->time;
37
    }
38
39
    /**
40
     * @param \DateTime $time
41
     * @return $this
42
     */
43
    public function setTime(\DateTime $time)
44
    {
45
        $this->time = $time->format('Y-m-d H:i:s');
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getUniformPimpayDeliveryStatus(): string
54
    {
55
        return $this->uniformPimpayDeliveryStatus;
56
    }
57
58
    /**
59
     * @param string $uniformPimpayDeliveryStatus
60
     * @return $this
61
     */
62
    public function setUniformPimpayDeliveryStatus(string $uniformPimpayDeliveryStatus)
63
    {
64
        $this->uniformPimpayDeliveryStatus = $uniformPimpayDeliveryStatus;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getCustomDeliveryStatus(): string
73
    {
74
        return $this->customDeliveryStatus;
75
    }
76
77
    /**
78
     * @param string $customDeliveryStatus
79
     * @return $this
80
     */
81
    public function setCustomDeliveryStatus(string $customDeliveryStatus)
82
    {
83
        $this->customDeliveryStatus = $customDeliveryStatus;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getDeliveryServiceDeliveryStatus(): string
92
    {
93
        return $this->deliveryServiceDeliveryStatus;
94
    }
95
96
    /**
97
     * @param string $deliveryServiceDeliveryStatus
98
     * @return $this
99
     */
100
    public function setDeliveryServiceDeliveryStatus(string $deliveryServiceDeliveryStatus)
101
    {
102
        $this->deliveryServiceDeliveryStatus = $deliveryServiceDeliveryStatus;
103
104
        return $this;
105
    }
106
}
107