1 | <?php |
||
7 | class ShipmentCharge |
||
8 | { |
||
9 | |||
10 | const SHIPMENT_CHARGE_TYPE_TRANSPORTATION = '01'; |
||
11 | const SHIPMENT_CHARGE_TYPE_DUTIES = '02'; |
||
12 | |||
13 | const TYPE_BILL_SHIPPER = 'billShipper'; |
||
14 | const TYPE_BILL_RECEIVER = 'billReceiver'; |
||
15 | const TYPE_BILL_THIRD_PARTY = 'billThirdParty'; |
||
16 | const TYPE_CONSIGNEE_BILLED = 'consigneeBilled'; |
||
17 | |||
18 | /** |
||
19 | * @var type |
||
20 | */ |
||
21 | private $type; |
||
22 | |||
23 | /** |
||
24 | * @var billShipper |
||
25 | */ |
||
26 | private $billShipper; |
||
27 | |||
28 | /** |
||
29 | * @var billReceiver |
||
30 | */ |
||
31 | private $billReceiver; |
||
32 | |||
33 | /** |
||
34 | * @var BillThirdParty |
||
35 | */ |
||
36 | private $billThirdParty; |
||
37 | |||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | private $consigneeBilled; |
||
42 | |||
43 | public function __construct($type = self::SHIPMENT_CHARGE_TYPE_TRANSPORTATION, $bill_type = self::TYPE_BILL_SHIPPER, $attributes = null) |
||
75 | |||
76 | /** |
||
77 | * @return BillShipper |
||
78 | */ |
||
79 | public function getBillShipper() |
||
83 | |||
84 | /** |
||
85 | * @param BillShipper $billShipper |
||
86 | * @return ShipmentCharge |
||
87 | */ |
||
88 | public function setBillShipper(BillShipper $billShipper= null) |
||
94 | |||
95 | /** |
||
96 | * @return BillReceiver |
||
97 | */ |
||
98 | public function getBillReceiver() |
||
102 | |||
103 | /** |
||
104 | * @param BillReceiver $billReceiver |
||
105 | * @return ShipmentCharge |
||
106 | */ |
||
107 | public function setBillReceiver(BillReceiver $billReceiver= null) |
||
113 | |||
114 | /** |
||
115 | * @return BillThirdParty |
||
116 | */ |
||
117 | public function getBillThirdParty() |
||
121 | |||
122 | /** |
||
123 | * @param BillThirdParty $billThirdParty |
||
124 | * @return ShipmentCharge |
||
125 | */ |
||
126 | public function setBillThirdParty(BillThirdParty $billThirdParty = null) |
||
132 | |||
133 | /** |
||
134 | * @return bool |
||
135 | */ |
||
136 | public function getConsigneeBilled() |
||
140 | |||
141 | /** |
||
142 | * @param bool $consigneeBilled |
||
143 | * @return ShipmentCharge |
||
144 | */ |
||
145 | public function setConsigneeBilled($consigneeBilled) |
||
151 | |||
152 | /** |
||
153 | * @return String |
||
154 | */ |
||
155 | public function getType() |
||
159 | } |
||
160 |
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..