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/LodgingReservation.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\LodgingReservationContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\ReservationContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A reservation for lodging at a hotel, motel, inn, etc.
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/LodgingReservation
18
 *
19
 */
20 View Code Duplication
class LodgingReservation extends BaseType implements LodgingReservationContract, 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
     * The earliest someone may check into a lodging establishment.
103
     *
104
     * @param \DateTimeInterface|\DateTimeInterface[] $checkinTime
105
     *
106
     * @return static
107
     *
108
     * @see http://schema.org/checkinTime
109
     */
110
    public function checkinTime($checkinTime)
111
    {
112
        return $this->setProperty('checkinTime', $checkinTime);
113
    }
114
115
    /**
116
     * The latest someone may check out of a lodging establishment.
117
     *
118
     * @param \DateTimeInterface|\DateTimeInterface[] $checkoutTime
119
     *
120
     * @return static
121
     *
122
     * @see http://schema.org/checkoutTime
123
     */
124
    public function checkoutTime($checkoutTime)
125
    {
126
        return $this->setProperty('checkoutTime', $checkoutTime);
127
    }
128
129
    /**
130
     * A description of the item.
131
     *
132
     * @param string|string[] $description
133
     *
134
     * @return static
135
     *
136
     * @see http://schema.org/description
137
     */
138
    public function description($description)
139
    {
140
        return $this->setProperty('description', $description);
141
    }
142
143
    /**
144
     * A sub property of description. A short description of the item used to
145
     * disambiguate from other, similar items. Information from other properties
146
     * (in particular, name) may be necessary for the description to be useful
147
     * for disambiguation.
148
     *
149
     * @param string|string[] $disambiguatingDescription
150
     *
151
     * @return static
152
     *
153
     * @see http://schema.org/disambiguatingDescription
154
     */
155
    public function disambiguatingDescription($disambiguatingDescription)
156
    {
157
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
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
     * A full description of the lodging unit.
195
     *
196
     * @param string|string[] $lodgingUnitDescription
197
     *
198
     * @return static
199
     *
200
     * @see http://schema.org/lodgingUnitDescription
201
     */
202
    public function lodgingUnitDescription($lodgingUnitDescription)
203
    {
204
        return $this->setProperty('lodgingUnitDescription', $lodgingUnitDescription);
205
    }
206
207
    /**
208
     * Textual description of the unit type (including suite vs. room, size of
209
     * bed, etc.).
210
     *
211
     * @param \Spatie\SchemaOrg\Contracts\QualitativeValueContract|\Spatie\SchemaOrg\Contracts\QualitativeValueContract[]|string|string[] $lodgingUnitType
212
     *
213
     * @return static
214
     *
215
     * @see http://schema.org/lodgingUnitType
216
     */
217
    public function lodgingUnitType($lodgingUnitType)
218
    {
219
        return $this->setProperty('lodgingUnitType', $lodgingUnitType);
220
    }
221
222
    /**
223
     * Indicates a page (or other CreativeWork) for which this thing is the main
224
     * entity being described. See [background
225
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
226
     *
227
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
228
     *
229
     * @return static
230
     *
231
     * @see http://schema.org/mainEntityOfPage
232
     */
233
    public function mainEntityOfPage($mainEntityOfPage)
234
    {
235
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
236
    }
237
238
    /**
239
     * The date and time the reservation was modified.
240
     *
241
     * @param \DateTimeInterface|\DateTimeInterface[] $modifiedTime
242
     *
243
     * @return static
244
     *
245
     * @see http://schema.org/modifiedTime
246
     */
247
    public function modifiedTime($modifiedTime)
248
    {
249
        return $this->setProperty('modifiedTime', $modifiedTime);
250
    }
251
252
    /**
253
     * The name of the item.
254
     *
255
     * @param string|string[] $name
256
     *
257
     * @return static
258
     *
259
     * @see http://schema.org/name
260
     */
261
    public function name($name)
262
    {
263
        return $this->setProperty('name', $name);
264
    }
265
266
    /**
267
     * The number of adults staying in the unit.
268
     *
269
     * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|int|int[] $numAdults
270
     *
271
     * @return static
272
     *
273
     * @see http://schema.org/numAdults
274
     */
275
    public function numAdults($numAdults)
276
    {
277
        return $this->setProperty('numAdults', $numAdults);
278
    }
279
280
    /**
281
     * The number of children staying in the unit.
282
     *
283
     * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|int|int[] $numChildren
284
     *
285
     * @return static
286
     *
287
     * @see http://schema.org/numChildren
288
     */
289
    public function numChildren($numChildren)
290
    {
291
        return $this->setProperty('numChildren', $numChildren);
292
    }
293
294
    /**
295
     * Indicates a potential Action, which describes an idealized action in
296
     * which this thing would play an 'object' role.
297
     *
298
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
299
     *
300
     * @return static
301
     *
302
     * @see http://schema.org/potentialAction
303
     */
304
    public function potentialAction($potentialAction)
305
    {
306
        return $this->setProperty('potentialAction', $potentialAction);
307
    }
308
309
    /**
310
     * The currency of the price, or a price component when attached to
311
     * [[PriceSpecification]] and its subtypes.
312
     * 
313
     * Use standard formats: [ISO 4217 currency
314
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
315
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
316
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
317
     * Tradings
318
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
319
     * (LETS) and other currency types e.g. "Ithaca HOUR".
320
     *
321
     * @param string|string[] $priceCurrency
322
     *
323
     * @return static
324
     *
325
     * @see http://schema.org/priceCurrency
326
     */
327
    public function priceCurrency($priceCurrency)
328
    {
329
        return $this->setProperty('priceCurrency', $priceCurrency);
330
    }
331
332
    /**
333
     * Any membership in a frequent flyer, hotel loyalty program, etc. being
334
     * applied to the reservation.
335
     *
336
     * @param \Spatie\SchemaOrg\Contracts\ProgramMembershipContract|\Spatie\SchemaOrg\Contracts\ProgramMembershipContract[] $programMembershipUsed
337
     *
338
     * @return static
339
     *
340
     * @see http://schema.org/programMembershipUsed
341
     */
342
    public function programMembershipUsed($programMembershipUsed)
343
    {
344
        return $this->setProperty('programMembershipUsed', $programMembershipUsed);
345
    }
346
347
    /**
348
     * The service provider, service operator, or service performer; the goods
349
     * producer. Another party (a seller) may offer those services or goods on
350
     * behalf of the provider. A provider may also serve as the seller.
351
     *
352
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider
353
     *
354
     * @return static
355
     *
356
     * @see http://schema.org/provider
357
     */
358
    public function provider($provider)
359
    {
360
        return $this->setProperty('provider', $provider);
361
    }
362
363
    /**
364
     * The thing -- flight, event, restaurant,etc. being reserved.
365
     *
366
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $reservationFor
367
     *
368
     * @return static
369
     *
370
     * @see http://schema.org/reservationFor
371
     */
372
    public function reservationFor($reservationFor)
373
    {
374
        return $this->setProperty('reservationFor', $reservationFor);
375
    }
376
377
    /**
378
     * A unique identifier for the reservation.
379
     *
380
     * @param string|string[] $reservationId
381
     *
382
     * @return static
383
     *
384
     * @see http://schema.org/reservationId
385
     */
386
    public function reservationId($reservationId)
387
    {
388
        return $this->setProperty('reservationId', $reservationId);
389
    }
390
391
    /**
392
     * The current status of the reservation.
393
     *
394
     * @param \Spatie\SchemaOrg\Contracts\ReservationStatusTypeContract|\Spatie\SchemaOrg\Contracts\ReservationStatusTypeContract[] $reservationStatus
395
     *
396
     * @return static
397
     *
398
     * @see http://schema.org/reservationStatus
399
     */
400
    public function reservationStatus($reservationStatus)
401
    {
402
        return $this->setProperty('reservationStatus', $reservationStatus);
403
    }
404
405
    /**
406
     * A ticket associated with the reservation.
407
     *
408
     * @param \Spatie\SchemaOrg\Contracts\TicketContract|\Spatie\SchemaOrg\Contracts\TicketContract[] $reservedTicket
409
     *
410
     * @return static
411
     *
412
     * @see http://schema.org/reservedTicket
413
     */
414
    public function reservedTicket($reservedTicket)
415
    {
416
        return $this->setProperty('reservedTicket', $reservedTicket);
417
    }
418
419
    /**
420
     * URL of a reference Web page that unambiguously indicates the item's
421
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
422
     * official website.
423
     *
424
     * @param string|string[] $sameAs
425
     *
426
     * @return static
427
     *
428
     * @see http://schema.org/sameAs
429
     */
430
    public function sameAs($sameAs)
431
    {
432
        return $this->setProperty('sameAs', $sameAs);
433
    }
434
435
    /**
436
     * A CreativeWork or Event about this Thing.
437
     *
438
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
439
     *
440
     * @return static
441
     *
442
     * @see http://schema.org/subjectOf
443
     */
444
    public function subjectOf($subjectOf)
445
    {
446
        return $this->setProperty('subjectOf', $subjectOf);
447
    }
448
449
    /**
450
     * The total price for the reservation or ticket, including applicable
451
     * taxes, shipping, etc.
452
     * 
453
     * Usage guidelines:
454
     * 
455
     * * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
456
     * NINE' (U+0039)) rather than superficially similiar Unicode symbols.
457
     * * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
458
     * decimal point. Avoid using these symbols as a readability separator.
459
     *
460
     * @param \Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[]|float|float[]|int|int[]|string|string[] $totalPrice
461
     *
462
     * @return static
463
     *
464
     * @see http://schema.org/totalPrice
465
     */
466
    public function totalPrice($totalPrice)
467
    {
468
        return $this->setProperty('totalPrice', $totalPrice);
469
    }
470
471
    /**
472
     * The person or organization the reservation or ticket is for.
473
     *
474
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $underName
475
     *
476
     * @return static
477
     *
478
     * @see http://schema.org/underName
479
     */
480
    public function underName($underName)
481
    {
482
        return $this->setProperty('underName', $underName);
483
    }
484
485
    /**
486
     * URL of the item.
487
     *
488
     * @param string|string[] $url
489
     *
490
     * @return static
491
     *
492
     * @see http://schema.org/url
493
     */
494
    public function url($url)
495
    {
496
        return $this->setProperty('url', $url);
497
    }
498
499
}
500