1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gueststream\PMS\IQWare\API; |
4
|
|
|
|
5
|
|
|
class OwnerInvoiceInfo |
6
|
|
|
{ |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @var \DateTime $InvoiceDate |
10
|
|
|
*/ |
11
|
|
|
protected $InvoiceDate = null; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int $DocumentID |
15
|
|
|
*/ |
16
|
|
|
protected $DocumentID = null; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string $HTTPMimeType |
20
|
|
|
*/ |
21
|
|
|
protected $HTTPMimeType = null; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string $SupplierName |
25
|
|
|
*/ |
26
|
|
|
protected $SupplierName = null; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param \DateTime $InvoiceDate |
30
|
|
|
* @param int $DocumentID |
31
|
|
|
*/ |
32
|
|
|
public function __construct(\DateTime $InvoiceDate, $DocumentID) |
33
|
|
|
{ |
34
|
|
|
$this->InvoiceDate = $InvoiceDate->format(\DateTime::ATOM); |
|
|
|
|
35
|
|
|
$this->DocumentID = $DocumentID; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @return \DateTime |
40
|
|
|
*/ |
41
|
|
|
public function getInvoiceDate() |
42
|
|
|
{ |
43
|
|
|
if ($this->InvoiceDate == null) { |
44
|
|
|
return null; |
45
|
|
|
} else { |
46
|
|
|
try { |
47
|
|
|
return new \DateTime($this->InvoiceDate); |
48
|
|
|
} catch (\Exception $e) { |
49
|
|
|
return false; |
50
|
|
|
} |
51
|
|
|
} |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @param \DateTime $InvoiceDate |
56
|
|
|
* @return \Gueststream\PMS\IQWare\API\OwnerInvoiceInfo |
57
|
|
|
*/ |
58
|
|
|
public function setInvoiceDate(\DateTime $InvoiceDate) |
59
|
|
|
{ |
60
|
|
|
$this->InvoiceDate = $InvoiceDate->format(\DateTime::ATOM); |
|
|
|
|
61
|
|
|
return $this; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @return int |
66
|
|
|
*/ |
67
|
|
|
public function getDocumentID() |
68
|
|
|
{ |
69
|
|
|
return $this->DocumentID; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @param int $DocumentID |
74
|
|
|
* @return \Gueststream\PMS\IQWare\API\OwnerInvoiceInfo |
75
|
|
|
*/ |
76
|
|
|
public function setDocumentID($DocumentID) |
77
|
|
|
{ |
78
|
|
|
$this->DocumentID = $DocumentID; |
79
|
|
|
return $this; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @return string |
84
|
|
|
*/ |
85
|
|
|
public function getHTTPMimeType() |
86
|
|
|
{ |
87
|
|
|
return $this->HTTPMimeType; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @param string $HTTPMimeType |
92
|
|
|
* @return \Gueststream\PMS\IQWare\API\OwnerInvoiceInfo |
93
|
|
|
*/ |
94
|
|
|
public function setHTTPMimeType($HTTPMimeType) |
95
|
|
|
{ |
96
|
|
|
$this->HTTPMimeType = $HTTPMimeType; |
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @return string |
102
|
|
|
*/ |
103
|
|
|
public function getSupplierName() |
104
|
|
|
{ |
105
|
|
|
return $this->SupplierName; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @param string $SupplierName |
110
|
|
|
* @return \Gueststream\PMS\IQWare\API\OwnerInvoiceInfo |
111
|
|
|
*/ |
112
|
|
|
public function setSupplierName($SupplierName) |
113
|
|
|
{ |
114
|
|
|
$this->SupplierName = $SupplierName; |
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
} |
118
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..