1010
1111use Magento \Framework \Api \ExtensibleDataInterface ;
1212
13+ /**
14+ * @api
15+ */
1316interface CalculateResultInterface extends ExtensibleDataInterface
1417{
1518 public const CARRIER = 'carrier ' ;
@@ -32,196 +35,182 @@ interface CalculateResultInterface extends ExtensibleDataInterface
3235 * Get carrier
3336 * @return string|null
3437 */
35- public function getCarrier ();
38+ public function getCarrier (): ? string ;
3639
3740 /**
3841 * Set carrier
39- * @param string $carrier
4042 * @return $this
4143 */
42- public function setCarrier ($ carrier );
44+ public function setCarrier (? string $ carrier ): self ;
4345
4446 /**
4547 * Get carrier title
4648 * @return string|null
4749 */
48- public function getCarrierTitle ();
50+ public function getCarrierTitle (): ? string ;
4951
5052 /**
5153 * Set carrier title
52- * @param string $carrierTitle
5354 * @return $this
5455 */
55- public function setCarrierTitle ($ carrierTitle );
56+ public function setCarrierTitle (? string $ carrierTitle ): self ;
5657
5758 /**
5859 * Get method
5960 * @return string|null
6061 */
61- public function getMethod ();
62+ public function getMethod (): ? string ;
6263
6364 /**
6465 * Set method
65- * @param string $method
6666 * @return $this
6767 */
68- public function setMethod ($ method );
68+ public function setMethod (? string $ method ): self ;
6969
7070 /**
7171 * Get method title
7272 * @return string|null
7373 */
74- public function getMethodTitle ();
74+ public function getMethodTitle (): ? string ;
7575
7676 /**
7777 * Set method title
78- * @param string $methodTitle
7978 * @return $this
8079 */
81- public function setMethodTitle ($ methodTitle );
80+ public function setMethodTitle (? string $ methodTitle ): self ;
8281
8382 /**
8483 * Get description
8584 * @return string|null
8685 */
87- public function getDescription ();
86+ public function getDescription (): ? string ;
8887
8988 /**
9089 * Set description
91- * @param string $description
9290 * @return $this
9391 */
94- public function setDescription ($ description );
92+ public function setDescription (? string $ description ): self ;
9593
9694 /**
9795 * Get price
9896 * @return float|null
9997 */
100- public function getPrice ();
98+ public function getPrice (): ? float ;
10199
102100 /**
103101 * Set price
104- * @param float $price
105102 * @return $this
106103 */
107- public function setPrice ($ price );
104+ public function setPrice (? float $ price ): self ;
108105
109106 /**
110107 * Get cost
111108 * @return float|null
112109 */
113- public function getCost ();
110+ public function getCost (): ? float ;
114111
115112 /**
116113 * Set cost
117- * @param float $cost
118114 * @return $this
119115 */
120- public function setCost ($ cost );
116+ public function setCost (? float $ cost ): self ;
121117
122118 /**
123119 * Get estimate date
124- * @return string[] |null
120+ * @return string|null
125121 */
126- public function getEstimateDate ();
122+ public function getEstimateDate (): ? string ;
127123
128124 /**
129125 * Set estimate date
130- * @param string[] $estimateDate
131126 * @return $this
132127 */
133- public function setEstimateDate ($ estimateDate );
128+ public function setEstimateDate (? string $ estimateDate ): self ;
134129
135130 /**
136131 * Get estimate time
137- * @return string[] |null
132+ * @return string|null
138133 */
139- public function getEstimateTime ();
134+ public function getEstimateTime (): ? string ;
140135
141136 /**
142137 * Set estimate time
143- * @param string[] $estimateTime
144138 * @return $this
145139 */
146- public function setEstimateTime ($ estimateTime );
140+ public function setEstimateTime (? string $ estimateTime ): self ;
147141
148142 /**
149143 * Get estimate
150144 * @return int|null
151145 */
152- public function getEstimate ();
146+ public function getEstimate (): ? int ;
153147
154148 /**
155149 * Set estimate
156- * @param int $estimate
157150 * @return $this
158151 */
159- public function setEstimate ($ estimate );
152+ public function setEstimate (? int $ estimate ): self ;
160153
161154 /**
162155 * Get pickup points
163156 * @return \Mygento\Shipment\Api\Data\PointInterface[]|null
164157 */
165- public function getPickupPoints ();
158+ public function getPickupPoints (): ? array ;
166159
167160 /**
168161 * Set pickup points
169- * @param \Mygento\Shipment\Api\Data\PointInterface[] $pickupPoints
162+ * @param \Mygento\Shipment\Api\Data\PointInterface[]|null $pickupPoints
170163 * @return $this
171164 */
172- public function setPickupPoints ($ pickupPoints );
165+ public function setPickupPoints (? array $ pickupPoints ): self ;
173166
174167 /**
175168 * Get latitude
176169 * @return string|null
177170 */
178- public function getLatitude ();
171+ public function getLatitude (): ? string ;
179172
180173 /**
181174 * Set latitude
182- * @param string $latitude
183175 * @return $this
184176 */
185- public function setLatitude ($ latitude );
177+ public function setLatitude (? string $ latitude ): self ;
186178
187179 /**
188- * Get error
189- * @return bool|null
180+ * Is error
181+ * @return bool
190182 */
191- public function getError () ;
183+ public function isError (): bool ;
192184
193185 /**
194186 * Set error
195- * @param bool $error
196187 * @return $this
197188 */
198- public function setError ($ error );
189+ public function setError (bool $ error ): self ;
199190
200191 /**
201192 * Get error message
202193 * @return string|null
203194 */
204- public function getErrorMessage ();
195+ public function getErrorMessage (): ? string ;
205196
206197 /**
207198 * Set error message
208- * @param string $errorMessage
209199 * @return $this
210200 */
211- public function setErrorMessage ($ errorMessage );
201+ public function setErrorMessage (? string $ errorMessage ): self ;
212202
213203 /**
214204 * Get longitude
215205 * @return string|null
216206 */
217- public function getLongitude ();
207+ public function getLongitude (): ? string ;
218208
219209 /**
220210 * Set longitude
221- * @param string $longitude
222211 * @return $this
223212 */
224- public function setLongitude ($ longitude );
213+ public function setLongitude (? string $ longitude ): self ;
225214
226215 /**
227216 * Retrieve existing extension attributes object or create a new one.
0 commit comments