This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Spatie\SchemaOrg; |
||
4 | |||
5 | use \Spatie\SchemaOrg\Contracts\ParcelDeliveryContract; |
||
6 | use \Spatie\SchemaOrg\Contracts\IntangibleContract; |
||
7 | use \Spatie\SchemaOrg\Contracts\ThingContract; |
||
8 | |||
9 | /** |
||
10 | * The delivery of a parcel either via the postal service or a commercial |
||
11 | * service. |
||
12 | * |
||
13 | * @see http://schema.org/ParcelDelivery |
||
14 | * |
||
15 | */ |
||
16 | View Code Duplication | class ParcelDelivery extends BaseType implements ParcelDeliveryContract, IntangibleContract, ThingContract |
|
0 ignored issues
–
show
|
|||
17 | { |
||
18 | /** |
||
19 | * An additional type for the item, typically used for adding more specific |
||
20 | * types from external vocabularies in microdata syntax. This is a |
||
21 | * relationship between something and a class that the thing is in. In RDFa |
||
22 | * syntax, it is better to use the native RDFa syntax - the 'typeof' |
||
23 | * attribute - for multiple types. Schema.org tools may have only weaker |
||
24 | * understanding of extra types, in particular those defined externally. |
||
25 | * |
||
26 | * @param string|string[] $additionalType |
||
27 | * |
||
28 | * @return static |
||
29 | * |
||
30 | * @see http://schema.org/additionalType |
||
31 | */ |
||
32 | public function additionalType($additionalType) |
||
33 | { |
||
34 | return $this->setProperty('additionalType', $additionalType); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * An alias for the item. |
||
39 | * |
||
40 | * @param string|string[] $alternateName |
||
41 | * |
||
42 | * @return static |
||
43 | * |
||
44 | * @see http://schema.org/alternateName |
||
45 | */ |
||
46 | public function alternateName($alternateName) |
||
47 | { |
||
48 | return $this->setProperty('alternateName', $alternateName); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * 'carrier' is an out-dated term indicating the 'provider' for parcel |
||
53 | * delivery and flights. |
||
54 | * |
||
55 | * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $carrier |
||
56 | * |
||
57 | * @return static |
||
58 | * |
||
59 | * @see http://schema.org/carrier |
||
60 | */ |
||
61 | public function carrier($carrier) |
||
62 | { |
||
63 | return $this->setProperty('carrier', $carrier); |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Destination address. |
||
68 | * |
||
69 | * @param \Spatie\SchemaOrg\Contracts\PostalAddressContract|\Spatie\SchemaOrg\Contracts\PostalAddressContract[] $deliveryAddress |
||
70 | * |
||
71 | * @return static |
||
72 | * |
||
73 | * @see http://schema.org/deliveryAddress |
||
74 | */ |
||
75 | public function deliveryAddress($deliveryAddress) |
||
76 | { |
||
77 | return $this->setProperty('deliveryAddress', $deliveryAddress); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * New entry added as the package passes through each leg of its journey |
||
82 | * (from shipment to final delivery). |
||
83 | * |
||
84 | * @param \Spatie\SchemaOrg\Contracts\DeliveryEventContract|\Spatie\SchemaOrg\Contracts\DeliveryEventContract[] $deliveryStatus |
||
85 | * |
||
86 | * @return static |
||
87 | * |
||
88 | * @see http://schema.org/deliveryStatus |
||
89 | */ |
||
90 | public function deliveryStatus($deliveryStatus) |
||
91 | { |
||
92 | return $this->setProperty('deliveryStatus', $deliveryStatus); |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * A description of the item. |
||
97 | * |
||
98 | * @param string|string[] $description |
||
99 | * |
||
100 | * @return static |
||
101 | * |
||
102 | * @see http://schema.org/description |
||
103 | */ |
||
104 | public function description($description) |
||
105 | { |
||
106 | return $this->setProperty('description', $description); |
||
107 | } |
||
108 | |||
109 | /** |
||
110 | * A sub property of description. A short description of the item used to |
||
111 | * disambiguate from other, similar items. Information from other properties |
||
112 | * (in particular, name) may be necessary for the description to be useful |
||
113 | * for disambiguation. |
||
114 | * |
||
115 | * @param string|string[] $disambiguatingDescription |
||
116 | * |
||
117 | * @return static |
||
118 | * |
||
119 | * @see http://schema.org/disambiguatingDescription |
||
120 | */ |
||
121 | public function disambiguatingDescription($disambiguatingDescription) |
||
122 | { |
||
123 | return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * The earliest date the package may arrive. |
||
128 | * |
||
129 | * @param \DateTimeInterface|\DateTimeInterface[] $expectedArrivalFrom |
||
130 | * |
||
131 | * @return static |
||
132 | * |
||
133 | * @see http://schema.org/expectedArrivalFrom |
||
134 | */ |
||
135 | public function expectedArrivalFrom($expectedArrivalFrom) |
||
136 | { |
||
137 | return $this->setProperty('expectedArrivalFrom', $expectedArrivalFrom); |
||
138 | } |
||
139 | |||
140 | /** |
||
141 | * The latest date the package may arrive. |
||
142 | * |
||
143 | * @param \DateTimeInterface|\DateTimeInterface[] $expectedArrivalUntil |
||
144 | * |
||
145 | * @return static |
||
146 | * |
||
147 | * @see http://schema.org/expectedArrivalUntil |
||
148 | */ |
||
149 | public function expectedArrivalUntil($expectedArrivalUntil) |
||
150 | { |
||
151 | return $this->setProperty('expectedArrivalUntil', $expectedArrivalUntil); |
||
152 | } |
||
153 | |||
154 | /** |
||
155 | * Method used for delivery or shipping. |
||
156 | * |
||
157 | * @param \Spatie\SchemaOrg\Contracts\DeliveryMethodContract|\Spatie\SchemaOrg\Contracts\DeliveryMethodContract[] $hasDeliveryMethod |
||
158 | * |
||
159 | * @return static |
||
160 | * |
||
161 | * @see http://schema.org/hasDeliveryMethod |
||
162 | */ |
||
163 | public function hasDeliveryMethod($hasDeliveryMethod) |
||
164 | { |
||
165 | return $this->setProperty('hasDeliveryMethod', $hasDeliveryMethod); |
||
166 | } |
||
167 | |||
168 | /** |
||
169 | * The identifier property represents any kind of identifier for any kind of |
||
170 | * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides |
||
171 | * dedicated properties for representing many of these, either as textual |
||
172 | * strings or as URL (URI) links. See [background |
||
173 | * notes](/docs/datamodel.html#identifierBg) for more details. |
||
174 | * |
||
175 | * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier |
||
176 | * |
||
177 | * @return static |
||
178 | * |
||
179 | * @see http://schema.org/identifier |
||
180 | */ |
||
181 | public function identifier($identifier) |
||
182 | { |
||
183 | return $this->setProperty('identifier', $identifier); |
||
184 | } |
||
185 | |||
186 | /** |
||
187 | * An image of the item. This can be a [[URL]] or a fully described |
||
188 | * [[ImageObject]]. |
||
189 | * |
||
190 | * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image |
||
191 | * |
||
192 | * @return static |
||
193 | * |
||
194 | * @see http://schema.org/image |
||
195 | */ |
||
196 | public function image($image) |
||
197 | { |
||
198 | return $this->setProperty('image', $image); |
||
199 | } |
||
200 | |||
201 | /** |
||
202 | * Item(s) being shipped. |
||
203 | * |
||
204 | * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[] $itemShipped |
||
205 | * |
||
206 | * @return static |
||
207 | * |
||
208 | * @see http://schema.org/itemShipped |
||
209 | */ |
||
210 | public function itemShipped($itemShipped) |
||
211 | { |
||
212 | return $this->setProperty('itemShipped', $itemShipped); |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * Indicates a page (or other CreativeWork) for which this thing is the main |
||
217 | * entity being described. See [background |
||
218 | * notes](/docs/datamodel.html#mainEntityBackground) for details. |
||
219 | * |
||
220 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage |
||
221 | * |
||
222 | * @return static |
||
223 | * |
||
224 | * @see http://schema.org/mainEntityOfPage |
||
225 | */ |
||
226 | public function mainEntityOfPage($mainEntityOfPage) |
||
227 | { |
||
228 | return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); |
||
229 | } |
||
230 | |||
231 | /** |
||
232 | * The name of the item. |
||
233 | * |
||
234 | * @param string|string[] $name |
||
235 | * |
||
236 | * @return static |
||
237 | * |
||
238 | * @see http://schema.org/name |
||
239 | */ |
||
240 | public function name($name) |
||
241 | { |
||
242 | return $this->setProperty('name', $name); |
||
243 | } |
||
244 | |||
245 | /** |
||
246 | * Shipper's address. |
||
247 | * |
||
248 | * @param \Spatie\SchemaOrg\Contracts\PostalAddressContract|\Spatie\SchemaOrg\Contracts\PostalAddressContract[] $originAddress |
||
249 | * |
||
250 | * @return static |
||
251 | * |
||
252 | * @see http://schema.org/originAddress |
||
253 | */ |
||
254 | public function originAddress($originAddress) |
||
255 | { |
||
256 | return $this->setProperty('originAddress', $originAddress); |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * The overall order the items in this delivery were included in. |
||
261 | * |
||
262 | * @param \Spatie\SchemaOrg\Contracts\OrderContract|\Spatie\SchemaOrg\Contracts\OrderContract[] $partOfOrder |
||
263 | * |
||
264 | * @return static |
||
265 | * |
||
266 | * @see http://schema.org/partOfOrder |
||
267 | */ |
||
268 | public function partOfOrder($partOfOrder) |
||
269 | { |
||
270 | return $this->setProperty('partOfOrder', $partOfOrder); |
||
271 | } |
||
272 | |||
273 | /** |
||
274 | * Indicates a potential Action, which describes an idealized action in |
||
275 | * which this thing would play an 'object' role. |
||
276 | * |
||
277 | * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction |
||
278 | * |
||
279 | * @return static |
||
280 | * |
||
281 | * @see http://schema.org/potentialAction |
||
282 | */ |
||
283 | public function potentialAction($potentialAction) |
||
284 | { |
||
285 | return $this->setProperty('potentialAction', $potentialAction); |
||
286 | } |
||
287 | |||
288 | /** |
||
289 | * The service provider, service operator, or service performer; the goods |
||
290 | * producer. Another party (a seller) may offer those services or goods on |
||
291 | * behalf of the provider. A provider may also serve as the seller. |
||
292 | * |
||
293 | * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider |
||
294 | * |
||
295 | * @return static |
||
296 | * |
||
297 | * @see http://schema.org/provider |
||
298 | */ |
||
299 | public function provider($provider) |
||
300 | { |
||
301 | return $this->setProperty('provider', $provider); |
||
302 | } |
||
303 | |||
304 | /** |
||
305 | * URL of a reference Web page that unambiguously indicates the item's |
||
306 | * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or |
||
307 | * official website. |
||
308 | * |
||
309 | * @param string|string[] $sameAs |
||
310 | * |
||
311 | * @return static |
||
312 | * |
||
313 | * @see http://schema.org/sameAs |
||
314 | */ |
||
315 | public function sameAs($sameAs) |
||
316 | { |
||
317 | return $this->setProperty('sameAs', $sameAs); |
||
318 | } |
||
319 | |||
320 | /** |
||
321 | * A CreativeWork or Event about this Thing. |
||
322 | * |
||
323 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf |
||
324 | * |
||
325 | * @return static |
||
326 | * |
||
327 | * @see http://schema.org/subjectOf |
||
328 | */ |
||
329 | public function subjectOf($subjectOf) |
||
330 | { |
||
331 | return $this->setProperty('subjectOf', $subjectOf); |
||
332 | } |
||
333 | |||
334 | /** |
||
335 | * Shipper tracking number. |
||
336 | * |
||
337 | * @param string|string[] $trackingNumber |
||
338 | * |
||
339 | * @return static |
||
340 | * |
||
341 | * @see http://schema.org/trackingNumber |
||
342 | */ |
||
343 | public function trackingNumber($trackingNumber) |
||
344 | { |
||
345 | return $this->setProperty('trackingNumber', $trackingNumber); |
||
346 | } |
||
347 | |||
348 | /** |
||
349 | * Tracking url for the parcel delivery. |
||
350 | * |
||
351 | * @param string|string[] $trackingUrl |
||
352 | * |
||
353 | * @return static |
||
354 | * |
||
355 | * @see http://schema.org/trackingUrl |
||
356 | */ |
||
357 | public function trackingUrl($trackingUrl) |
||
358 | { |
||
359 | return $this->setProperty('trackingUrl', $trackingUrl); |
||
360 | } |
||
361 | |||
362 | /** |
||
363 | * URL of the item. |
||
364 | * |
||
365 | * @param string|string[] $url |
||
366 | * |
||
367 | * @return static |
||
368 | * |
||
369 | * @see http://schema.org/url |
||
370 | */ |
||
371 | public function url($url) |
||
372 | { |
||
373 | return $this->setProperty('url', $url); |
||
374 | } |
||
375 | |||
376 | } |
||
377 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.