1 | <?php |
||
33 | class Invoice implements EntityInterface |
||
34 | { |
||
35 | use Identifiable; |
||
36 | use Timestampable; |
||
37 | use Blameable; |
||
38 | use OrderAwareTrait; |
||
39 | use ShopAwareTrait; |
||
40 | use InvoiceExtraTrait; |
||
41 | |||
42 | const DEFAULT_PROCESSOR = 'generic'; |
||
43 | |||
44 | protected $guid = ''; |
||
45 | protected $number = ''; |
||
46 | protected $currency = ''; |
||
47 | protected $currencyRate = 1.0000; |
||
48 | protected $shippingMethodName = ''; |
||
49 | protected $paymentMethodName = ''; |
||
50 | protected $date; |
||
51 | protected $dueDate; |
||
52 | protected $paid = true; |
||
53 | protected $amountDue = 0.00; |
||
54 | protected $amountPaid = 0.00; |
||
55 | protected $signature = ''; |
||
56 | protected $processor = self::DEFAULT_PROCESSOR; |
||
57 | |||
58 | /** |
||
59 | * @var Collection |
||
60 | */ |
||
61 | protected $items; |
||
62 | |||
63 | /** |
||
64 | * @var ClientBillingAddress |
||
65 | */ |
||
66 | protected $billingAddress; |
||
67 | |||
68 | public function __construct() |
||
75 | |||
76 | public function getGuid(): string |
||
80 | |||
81 | public function setGuid(string $guid) |
||
85 | |||
86 | public function getNumber(): string |
||
90 | |||
91 | public function setNumber(string $number) |
||
95 | |||
96 | public function getCurrency(): string |
||
100 | |||
101 | public function setCurrency(string $currency) |
||
105 | |||
106 | public function getCurrencyRate(): float |
||
110 | |||
111 | public function setCurrencyRate(float $currencyRate) |
||
115 | |||
116 | public function getShippingMethodName(): string |
||
120 | |||
121 | public function setShippingMethodName(string $shippingMethodName) |
||
125 | |||
126 | public function getPaymentMethodName(): string |
||
130 | |||
131 | public function setPaymentMethodName(string $paymentMethodName) |
||
135 | |||
136 | public function getDate(): \DateTime |
||
140 | |||
141 | public function setDate(\DateTime $date) |
||
145 | |||
146 | public function getDueDate(): \DateTime |
||
150 | |||
151 | public function setDueDate(\DateTime $dueDate) |
||
155 | |||
156 | public function isPaid(): bool |
||
160 | |||
161 | public function setPaid(bool $paid) |
||
165 | |||
166 | public function getAmountDue(): float |
||
170 | |||
171 | public function setAmountDue(float $amountDue) |
||
175 | |||
176 | public function getAmountPaid(): float |
||
180 | |||
181 | public function setAmountPaid(float $amountPaid) |
||
185 | |||
186 | public function getItems(): Collection |
||
190 | |||
191 | public function setItems(Collection $items) |
||
195 | |||
196 | public function getBillingAddress(): ClientBillingAddress |
||
200 | |||
201 | public function setBillingAddress(ClientBillingAddress $billingAddress) |
||
205 | |||
206 | public function getSignature(): string |
||
210 | |||
211 | public function setSignature(string $signature) |
||
215 | |||
216 | public function getProcessor(): string |
||
220 | |||
221 | public function setProcessor(string $processor) |
||
225 | } |
||
226 |