PluginProbe
AliNext – WooCommerce Dropshipping Plugin for AliExpress / trunk
AliNext – WooCommerce Dropshipping Plugin for AliExpress vtrunk
ali2woo-lite / includes / classes / object / ExternalOrder.php

ExternalOrder.php in AliNext – WooCommerce Dropshipping Plugin for AliExpress trunk, at includes/classes/object/ExternalOrder.php

83 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Description of ExternalOrder
5 *
6 * @author Ali2Woo Team
7 */
8
9 namespace AliNext_Lite;;
10
11 class ExternalOrder
12 {
13 /**
14 * @param int $orderId
15 * @param ExternalOrderShippingAddress $ExternalOrderShippingAddress
16 * @param array|ExternalOrderItem[] $ExternalOrderItems
17 */
18 function __construct(
19 private int $orderId,
20 private ExternalOrderShippingAddress $ExternalOrderShippingAddress,
21 private array $ExternalOrderItems,
22 private string $buyerName
23 ) {
24
25 }
26
27 public function getOrderId(): int
28 {
29 return $this->orderId;
30 }
31
32 public function setOrderId(int $orderId): self
33 {
34 $this->orderId = $orderId;
35
36 return $this;
37 }
38
39 public function getShippingAddress(): ExternalOrderShippingAddress
40 {
41 return $this->ExternalOrderShippingAddress;
42 }
43
44 public function setShippingAddress(ExternalOrderShippingAddress $ExternalOrderShippingAddress): self
45 {
46 $this->ExternalOrderShippingAddress = $ExternalOrderShippingAddress;
47
48 return $this;
49 }
50
51 /**
52 * @return array|ExternalOrderItem[]
53 */
54 public function getItems(): array
55 {
56 return $this->ExternalOrderItems;
57 }
58
59 /**
60 * @param array|ExternalOrderItem[] $ExternalOrderItems
61 * @return $this
62 */
63 public function setItems(array $ExternalOrderItems): self
64 {
65 $this->ExternalOrderItems = $ExternalOrderItems;
66
67 return $this;
68 }
69
70 public function getBuyerName(): string
71 {
72 return $this->buyerName;
73 }
74
75 public function setBuyerName(string $buyerName): self
76 {
77 $this->buyerName = $buyerName;
78
79 return $this;
80 }
81
82 }
83