1 | <?php |
||
12 | class Label extends Model |
||
13 | { |
||
14 | public $paper_size = 'default'; |
||
15 | public $service_type; |
||
16 | public $is_document = false; |
||
17 | public $shipper_account; |
||
18 | public $shipment; |
||
19 | public $async = false; |
||
20 | public $return_shipment = false; |
||
21 | public $ship_date; |
||
22 | public $service_options = null; |
||
23 | public $invoice; |
||
24 | public $references; |
||
25 | public $billing; |
||
26 | public $customs; |
||
27 | |||
28 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * @param string $size |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function paper_size($size = 'default') |
||
44 | |||
45 | /** |
||
46 | * @param $service |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function service_type($service) |
||
56 | |||
57 | /** |
||
58 | * @param bool $value |
||
59 | * |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function is_document($value = true) |
||
72 | |||
73 | /** |
||
74 | * @param $id |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function shipper_account($id) |
||
86 | |||
87 | /** |
||
88 | * @param Shipment $shipment |
||
89 | * |
||
90 | * @return $this |
||
91 | */ |
||
92 | public function shipment(Shipment $shipment) |
||
98 | |||
99 | /** |
||
100 | * @param bool $value |
||
101 | * |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function async($value = true) |
||
114 | |||
115 | /** |
||
116 | * @param bool $value |
||
117 | * |
||
118 | * @return $this |
||
119 | */ |
||
120 | public function return_shipment($value = true) |
||
130 | |||
131 | /** |
||
132 | * @param $value YYYY-MM-DD formatted date |
||
133 | * |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function ship_date($value) |
||
142 | |||
143 | /** |
||
144 | * @param Money $money |
||
145 | * |
||
146 | * @return $this |
||
147 | */ |
||
148 | public function COD(Money $money) |
||
160 | |||
161 | /** |
||
162 | * @param Invoice $invoice |
||
163 | * |
||
164 | * @return $this |
||
165 | */ |
||
166 | public function invoice(Invoice $invoice) |
||
172 | |||
173 | /** |
||
174 | * @param array $references |
||
175 | * |
||
176 | * @return $this |
||
177 | */ |
||
178 | public function references(array $references) |
||
184 | |||
185 | public function billing(Billing $billing) |
||
191 | |||
192 | /** |
||
193 | * @param Customs $customs |
||
194 | * |
||
195 | * @return $this |
||
196 | */ |
||
197 | public function customs(Customs $customs) |
||
203 | } |
||
204 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.