1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AllDigitalRewards\WeGift\Entity; |
4
|
|
|
|
5
|
|
|
class Ecode extends AbstractEntity |
6
|
|
|
{ |
7
|
|
|
protected string $delivery_url; |
8
|
|
|
protected string $error_code; |
9
|
|
|
protected string $error_string; |
10
|
|
|
protected string $expiry_date; |
11
|
|
|
protected string $status; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @return string |
15
|
|
|
*/ |
16
|
|
|
public function getDeliveryUrl(): string |
17
|
|
|
{ |
18
|
|
|
return $this->delivery_url; |
19
|
|
|
} |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @param string $delivery_url |
23
|
|
|
*/ |
24
|
|
|
public function setDeliveryUrl(string $delivery_url): void |
25
|
|
|
{ |
26
|
|
|
$this->delivery_url = $delivery_url; |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @return string |
31
|
|
|
*/ |
32
|
|
|
public function getErrorCode(): string |
33
|
|
|
{ |
34
|
|
|
return $this->error_code; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @param string $error_code |
39
|
|
|
*/ |
40
|
|
|
public function setErrorCode(string $error_code): void |
41
|
|
|
{ |
42
|
|
|
$this->error_code = $error_code; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @return string |
47
|
|
|
*/ |
48
|
|
|
public function getErrorString(): string |
49
|
|
|
{ |
50
|
|
|
return $this->error_string; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @param string $error_string |
55
|
|
|
*/ |
56
|
|
|
public function setErrorString(string $error_string): void |
57
|
|
|
{ |
58
|
|
|
$this->error_string = $error_string; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @return string |
63
|
|
|
*/ |
64
|
|
|
public function getExpiryDate(): string |
65
|
|
|
{ |
66
|
|
|
return $this->expiry_date; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @param string $expiry_date |
71
|
|
|
*/ |
72
|
|
|
public function setExpiryDate(string $expiry_date): void |
73
|
|
|
{ |
74
|
|
|
$this->expiry_date = $expiry_date; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @return string |
79
|
|
|
*/ |
80
|
|
|
public function getStatus(): string |
81
|
|
|
{ |
82
|
|
|
return $this->status; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @param string $status |
87
|
|
|
*/ |
88
|
|
|
public function setStatus(string $status): void |
89
|
|
|
{ |
90
|
|
|
$this->status = $status; |
91
|
|
|
} |
92
|
|
|
} |
93
|
|
|
|