1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PimpayBundle\Model; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class OrderState |
7
|
|
|
* @package PimpayBundle\Model |
8
|
|
|
*/ |
9
|
|
|
class OrderState |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* @var string |
13
|
|
|
*/ |
14
|
|
|
private $id; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var float |
18
|
|
|
*/ |
19
|
|
|
private $cost; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string |
23
|
|
|
*/ |
24
|
|
|
private $uniformPimpayDeliveryStatus; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string |
28
|
|
|
*/ |
29
|
|
|
private $customDeliveryStatus; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var string |
33
|
|
|
*/ |
34
|
|
|
private $deliveryServiceDeliveryStatus; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
*/ |
39
|
|
|
private $time; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @return string |
43
|
|
|
*/ |
44
|
|
|
public function getId(): string |
45
|
|
|
{ |
46
|
|
|
return $this->id; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @param string $id |
51
|
|
|
*/ |
52
|
|
|
public function setId(string $id) |
53
|
|
|
{ |
54
|
|
|
$this->id = $id; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @return float |
59
|
|
|
*/ |
60
|
|
|
public function getCost(): float |
61
|
|
|
{ |
62
|
|
|
return $this->cost; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @param float $cost |
67
|
|
|
*/ |
68
|
|
|
public function setCost(float $cost) |
69
|
|
|
{ |
70
|
|
|
$this->cost = $cost; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return string |
75
|
|
|
*/ |
76
|
|
|
public function getUniformPimpayDeliveryStatus(): string |
77
|
|
|
{ |
78
|
|
|
return $this->uniformPimpayDeliveryStatus; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @param string $uniformPimpayDeliveryStatus |
83
|
|
|
*/ |
84
|
|
|
public function setUniformPimpayDeliveryStatus(string $uniformPimpayDeliveryStatus) |
85
|
|
|
{ |
86
|
|
|
$this->uniformPimpayDeliveryStatus = $uniformPimpayDeliveryStatus; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
|
|
public function getCustomDeliveryStatus(): string |
93
|
|
|
{ |
94
|
|
|
return $this->customDeliveryStatus; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param string $customDeliveryStatus |
99
|
|
|
*/ |
100
|
|
|
public function setCustomDeliveryStatus(string $customDeliveryStatus) |
101
|
|
|
{ |
102
|
|
|
$this->customDeliveryStatus = $customDeliveryStatus; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @return string |
107
|
|
|
*/ |
108
|
|
|
public function getDeliveryServiceDeliveryStatus(): string |
109
|
|
|
{ |
110
|
|
|
return $this->deliveryServiceDeliveryStatus; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param string $deliveryServiceDeliveryStatus |
115
|
|
|
*/ |
116
|
|
|
public function setDeliveryServiceDeliveryStatus(string $deliveryServiceDeliveryStatus) |
117
|
|
|
{ |
118
|
|
|
$this->deliveryServiceDeliveryStatus = $deliveryServiceDeliveryStatus; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return string |
123
|
|
|
*/ |
124
|
|
|
public function getTime(): string |
125
|
|
|
{ |
126
|
|
|
return $this->time; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param \DateTime $time |
131
|
|
|
*/ |
132
|
|
|
public function setTime(\DateTime $time) |
133
|
|
|
{ |
134
|
|
|
$this->time = $time->format('Y-m-d H:i:s'); |
135
|
|
|
} |
136
|
|
|
} |
137
|
|
|
|