1 | <?php |
||
10 | class Shipping implements \JsonSerializable |
||
11 | { |
||
12 | /** @var */ |
||
13 | private $first_name; |
||
14 | |||
15 | /** @var */ |
||
16 | private $name; |
||
17 | |||
18 | /** @var */ |
||
19 | private $email; |
||
20 | |||
21 | /** @var */ |
||
22 | private $phone_number; |
||
23 | |||
24 | /** @var int */ |
||
25 | private $shipping_amount = 0; |
||
26 | |||
27 | /** @var */ |
||
28 | private $address; |
||
29 | |||
30 | public function jsonSerialize() |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function getFirstName() |
||
43 | |||
44 | /** |
||
45 | * @param $first_name |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setFirstName($first_name) |
||
54 | |||
55 | /** |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function getName() |
||
62 | |||
63 | /** |
||
64 | * @param $name |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setName($name) |
||
73 | |||
74 | /** |
||
75 | * |
||
76 | * @return mixed |
||
77 | */ |
||
78 | public function getEmail() |
||
82 | |||
83 | /** |
||
84 | * @param $email |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setEmail($email) |
||
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getPhoneNumber() |
||
101 | |||
102 | /** |
||
103 | * @param $phone_number |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setPhoneNumber($phone_number) |
||
112 | |||
113 | /** |
||
114 | * @return int |
||
115 | */ |
||
116 | public function getShippingAmount() |
||
120 | |||
121 | /** |
||
122 | * @param $shipping_amount |
||
123 | * @return $this |
||
124 | */ |
||
125 | public function setShippingAmount($shipping_amount) |
||
131 | |||
132 | /** |
||
133 | * @return mixed |
||
134 | */ |
||
135 | public function getAddress() |
||
139 | |||
140 | /** |
||
141 | * @param Address $address |
||
142 | * @return $this |
||
143 | */ |
||
144 | public function setAddress(Address $address) |
||
150 | |||
151 | /** |
||
152 | * @return Address |
||
153 | */ |
||
154 | public function address() |
||
162 | |||
163 | /** |
||
164 | * @param Customer $customer |
||
165 | * @return $this |
||
166 | */ |
||
167 | public function populateByCustomer(Customer $customer) |
||
177 | } |
||
178 |