Issues (439)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/RentalCarReservation.php (1 issue)

Upgrade to new PHP Analysis Engine

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\RentalCarReservationContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\ReservationContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A reservation for a rental car.
12
 * 
13
 * Note: This type is for information about actual reservations, e.g. in
14
 * confirmation emails or HTML pages with individual confirmations of
15
 * reservations.
16
 *
17
 * @see http://schema.org/RentalCarReservation
18
 *
19
 */
20 View Code Duplication
class RentalCarReservation extends BaseType implements RentalCarReservationContract, IntangibleContract, ReservationContract, ThingContract
0 ignored issues
show
This class seems to be duplicated in your project.

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.

Loading history...
21
{
22
    /**
23
     * An additional type for the item, typically used for adding more specific
24
     * types from external vocabularies in microdata syntax. This is a
25
     * relationship between something and a class that the thing is in. In RDFa
26
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
27
     * attribute - for multiple types. Schema.org tools may have only weaker
28
     * understanding of extra types, in particular those defined externally.
29
     *
30
     * @param string|string[] $additionalType
31
     *
32
     * @return static
33
     *
34
     * @see http://schema.org/additionalType
35
     */
36
    public function additionalType($additionalType)
37
    {
38
        return $this->setProperty('additionalType', $additionalType);
39
    }
40
41
    /**
42
     * An alias for the item.
43
     *
44
     * @param string|string[] $alternateName
45
     *
46
     * @return static
47
     *
48
     * @see http://schema.org/alternateName
49
     */
50
    public function alternateName($alternateName)
51
    {
52
        return $this->setProperty('alternateName', $alternateName);
53
    }
54
55
    /**
56
     * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as
57
     * a booking agent.
58
     *
59
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $bookingAgent
60
     *
61
     * @return static
62
     *
63
     * @see http://schema.org/bookingAgent
64
     */
65
    public function bookingAgent($bookingAgent)
66
    {
67
        return $this->setProperty('bookingAgent', $bookingAgent);
68
    }
69
70
    /**
71
     * The date and time the reservation was booked.
72
     *
73
     * @param \DateTimeInterface|\DateTimeInterface[] $bookingTime
74
     *
75
     * @return static
76
     *
77
     * @see http://schema.org/bookingTime
78
     */
79
    public function bookingTime($bookingTime)
80
    {
81
        return $this->setProperty('bookingTime', $bookingTime);
82
    }
83
84
    /**
85
     * An entity that arranges for an exchange between a buyer and a seller.  In
86
     * most cases a broker never acquires or releases ownership of a product or
87
     * service involved in an exchange.  If it is not clear whether an entity is
88
     * a broker, seller, or buyer, the latter two terms are preferred.
89
     *
90
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $broker
91
     *
92
     * @return static
93
     *
94
     * @see http://schema.org/broker
95
     */
96
    public function broker($broker)
97
    {
98
        return $this->setProperty('broker', $broker);
99
    }
100
101
    /**
102
     * A description of the item.
103
     *
104
     * @param string|string[] $description
105
     *
106
     * @return static
107
     *
108
     * @see http://schema.org/description
109
     */
110
    public function description($description)
111
    {
112
        return $this->setProperty('description', $description);
113
    }
114
115
    /**
116
     * A sub property of description. A short description of the item used to
117
     * disambiguate from other, similar items. Information from other properties
118
     * (in particular, name) may be necessary for the description to be useful
119
     * for disambiguation.
120
     *
121
     * @param string|string[] $disambiguatingDescription
122
     *
123
     * @return static
124
     *
125
     * @see http://schema.org/disambiguatingDescription
126
     */
127
    public function disambiguatingDescription($disambiguatingDescription)
128
    {
129
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
130
    }
131
132
    /**
133
     * Where a rental car can be dropped off.
134
     *
135
     * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $dropoffLocation
136
     *
137
     * @return static
138
     *
139
     * @see http://schema.org/dropoffLocation
140
     */
141
    public function dropoffLocation($dropoffLocation)
142
    {
143
        return $this->setProperty('dropoffLocation', $dropoffLocation);
144
    }
145
146
    /**
147
     * When a rental car can be dropped off.
148
     *
149
     * @param \DateTimeInterface|\DateTimeInterface[] $dropoffTime
150
     *
151
     * @return static
152
     *
153
     * @see http://schema.org/dropoffTime
154
     */
155
    public function dropoffTime($dropoffTime)
156
    {
157
        return $this->setProperty('dropoffTime', $dropoffTime);
158
    }
159
160
    /**
161
     * The identifier property represents any kind of identifier for any kind of
162
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
163
     * dedicated properties for representing many of these, either as textual
164
     * strings or as URL (URI) links. See [background
165
     * notes](/docs/datamodel.html#identifierBg) for more details.
166
     *
167
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
168
     *
169
     * @return static
170
     *
171
     * @see http://schema.org/identifier
172
     */
173
    public function identifier($identifier)
174
    {
175
        return $this->setProperty('identifier', $identifier);
176
    }
177
178
    /**
179
     * An image of the item. This can be a [[URL]] or a fully described
180
     * [[ImageObject]].
181
     *
182
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
183
     *
184
     * @return static
185
     *
186
     * @see http://schema.org/image
187
     */
188
    public function image($image)
189
    {
190
        return $this->setProperty('image', $image);
191
    }
192
193
    /**
194
     * Indicates a page (or other CreativeWork) for which this thing is the main
195
     * entity being described. See [background
196
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
197
     *
198
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
199
     *
200
     * @return static
201
     *
202
     * @see http://schema.org/mainEntityOfPage
203
     */
204
    public function mainEntityOfPage($mainEntityOfPage)
205
    {
206
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
207
    }
208
209
    /**
210
     * The date and time the reservation was modified.
211
     *
212
     * @param \DateTimeInterface|\DateTimeInterface[] $modifiedTime
213
     *
214
     * @return static
215
     *
216
     * @see http://schema.org/modifiedTime
217
     */
218
    public function modifiedTime($modifiedTime)
219
    {
220
        return $this->setProperty('modifiedTime', $modifiedTime);
221
    }
222
223
    /**
224
     * The name of the item.
225
     *
226
     * @param string|string[] $name
227
     *
228
     * @return static
229
     *
230
     * @see http://schema.org/name
231
     */
232
    public function name($name)
233
    {
234
        return $this->setProperty('name', $name);
235
    }
236
237
    /**
238
     * Where a taxi will pick up a passenger or a rental car can be picked up.
239
     *
240
     * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $pickupLocation
241
     *
242
     * @return static
243
     *
244
     * @see http://schema.org/pickupLocation
245
     */
246
    public function pickupLocation($pickupLocation)
247
    {
248
        return $this->setProperty('pickupLocation', $pickupLocation);
249
    }
250
251
    /**
252
     * When a taxi will pickup a passenger or a rental car can be picked up.
253
     *
254
     * @param \DateTimeInterface|\DateTimeInterface[] $pickupTime
255
     *
256
     * @return static
257
     *
258
     * @see http://schema.org/pickupTime
259
     */
260
    public function pickupTime($pickupTime)
261
    {
262
        return $this->setProperty('pickupTime', $pickupTime);
263
    }
264
265
    /**
266
     * Indicates a potential Action, which describes an idealized action in
267
     * which this thing would play an 'object' role.
268
     *
269
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
270
     *
271
     * @return static
272
     *
273
     * @see http://schema.org/potentialAction
274
     */
275
    public function potentialAction($potentialAction)
276
    {
277
        return $this->setProperty('potentialAction', $potentialAction);
278
    }
279
280
    /**
281
     * The currency of the price, or a price component when attached to
282
     * [[PriceSpecification]] and its subtypes.
283
     * 
284
     * Use standard formats: [ISO 4217 currency
285
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
286
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
287
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
288
     * Tradings
289
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
290
     * (LETS) and other currency types e.g. "Ithaca HOUR".
291
     *
292
     * @param string|string[] $priceCurrency
293
     *
294
     * @return static
295
     *
296
     * @see http://schema.org/priceCurrency
297
     */
298
    public function priceCurrency($priceCurrency)
299
    {
300
        return $this->setProperty('priceCurrency', $priceCurrency);
301
    }
302
303
    /**
304
     * Any membership in a frequent flyer, hotel loyalty program, etc. being
305
     * applied to the reservation.
306
     *
307
     * @param \Spatie\SchemaOrg\Contracts\ProgramMembershipContract|\Spatie\SchemaOrg\Contracts\ProgramMembershipContract[] $programMembershipUsed
308
     *
309
     * @return static
310
     *
311
     * @see http://schema.org/programMembershipUsed
312
     */
313
    public function programMembershipUsed($programMembershipUsed)
314
    {
315
        return $this->setProperty('programMembershipUsed', $programMembershipUsed);
316
    }
317
318
    /**
319
     * The service provider, service operator, or service performer; the goods
320
     * producer. Another party (a seller) may offer those services or goods on
321
     * behalf of the provider. A provider may also serve as the seller.
322
     *
323
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider
324
     *
325
     * @return static
326
     *
327
     * @see http://schema.org/provider
328
     */
329
    public function provider($provider)
330
    {
331
        return $this->setProperty('provider', $provider);
332
    }
333
334
    /**
335
     * The thing -- flight, event, restaurant,etc. being reserved.
336
     *
337
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $reservationFor
338
     *
339
     * @return static
340
     *
341
     * @see http://schema.org/reservationFor
342
     */
343
    public function reservationFor($reservationFor)
344
    {
345
        return $this->setProperty('reservationFor', $reservationFor);
346
    }
347
348
    /**
349
     * A unique identifier for the reservation.
350
     *
351
     * @param string|string[] $reservationId
352
     *
353
     * @return static
354
     *
355
     * @see http://schema.org/reservationId
356
     */
357
    public function reservationId($reservationId)
358
    {
359
        return $this->setProperty('reservationId', $reservationId);
360
    }
361
362
    /**
363
     * The current status of the reservation.
364
     *
365
     * @param \Spatie\SchemaOrg\Contracts\ReservationStatusTypeContract|\Spatie\SchemaOrg\Contracts\ReservationStatusTypeContract[] $reservationStatus
366
     *
367
     * @return static
368
     *
369
     * @see http://schema.org/reservationStatus
370
     */
371
    public function reservationStatus($reservationStatus)
372
    {
373
        return $this->setProperty('reservationStatus', $reservationStatus);
374
    }
375
376
    /**
377
     * A ticket associated with the reservation.
378
     *
379
     * @param \Spatie\SchemaOrg\Contracts\TicketContract|\Spatie\SchemaOrg\Contracts\TicketContract[] $reservedTicket
380
     *
381
     * @return static
382
     *
383
     * @see http://schema.org/reservedTicket
384
     */
385
    public function reservedTicket($reservedTicket)
386
    {
387
        return $this->setProperty('reservedTicket', $reservedTicket);
388
    }
389
390
    /**
391
     * URL of a reference Web page that unambiguously indicates the item's
392
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
393
     * official website.
394
     *
395
     * @param string|string[] $sameAs
396
     *
397
     * @return static
398
     *
399
     * @see http://schema.org/sameAs
400
     */
401
    public function sameAs($sameAs)
402
    {
403
        return $this->setProperty('sameAs', $sameAs);
404
    }
405
406
    /**
407
     * A CreativeWork or Event about this Thing.
408
     *
409
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
410
     *
411
     * @return static
412
     *
413
     * @see http://schema.org/subjectOf
414
     */
415
    public function subjectOf($subjectOf)
416
    {
417
        return $this->setProperty('subjectOf', $subjectOf);
418
    }
419
420
    /**
421
     * The total price for the reservation or ticket, including applicable
422
     * taxes, shipping, etc.
423
     * 
424
     * Usage guidelines:
425
     * 
426
     * * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
427
     * NINE' (U+0039)) rather than superficially similiar Unicode symbols.
428
     * * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
429
     * decimal point. Avoid using these symbols as a readability separator.
430
     *
431
     * @param \Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[]|float|float[]|int|int[]|string|string[] $totalPrice
432
     *
433
     * @return static
434
     *
435
     * @see http://schema.org/totalPrice
436
     */
437
    public function totalPrice($totalPrice)
438
    {
439
        return $this->setProperty('totalPrice', $totalPrice);
440
    }
441
442
    /**
443
     * The person or organization the reservation or ticket is for.
444
     *
445
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $underName
446
     *
447
     * @return static
448
     *
449
     * @see http://schema.org/underName
450
     */
451
    public function underName($underName)
452
    {
453
        return $this->setProperty('underName', $underName);
454
    }
455
456
    /**
457
     * URL of the item.
458
     *
459
     * @param string|string[] $url
460
     *
461
     * @return static
462
     *
463
     * @see http://schema.org/url
464
     */
465
    public function url($url)
466
    {
467
        return $this->setProperty('url', $url);
468
    }
469
470
}
471