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