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/RentAction.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\RentActionContract;
6
use \Spatie\SchemaOrg\Contracts\ActionContract;
7
use \Spatie\SchemaOrg\Contracts\ThingContract;
8
use \Spatie\SchemaOrg\Contracts\TradeActionContract;
9
10
/**
11
 * The act of giving money in return for temporary use, but not ownership, of an
12
 * object such as a vehicle or property. For example, an agent rents a property
13
 * from a landlord in exchange for a periodic payment.
14
 *
15
 * @see http://schema.org/RentAction
16
 *
17
 */
18 View Code Duplication
class RentAction extends BaseType implements RentActionContract, ActionContract, ThingContract, TradeActionContract
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...
19
{
20
    /**
21
     * Indicates the current disposition of the Action.
22
     *
23
     * @param \Spatie\SchemaOrg\Contracts\ActionStatusTypeContract|\Spatie\SchemaOrg\Contracts\ActionStatusTypeContract[] $actionStatus
24
     *
25
     * @return static
26
     *
27
     * @see http://schema.org/actionStatus
28
     */
29
    public function actionStatus($actionStatus)
30
    {
31
        return $this->setProperty('actionStatus', $actionStatus);
32
    }
33
34
    /**
35
     * An additional type for the item, typically used for adding more specific
36
     * types from external vocabularies in microdata syntax. This is a
37
     * relationship between something and a class that the thing is in. In RDFa
38
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
39
     * attribute - for multiple types. Schema.org tools may have only weaker
40
     * understanding of extra types, in particular those defined externally.
41
     *
42
     * @param string|string[] $additionalType
43
     *
44
     * @return static
45
     *
46
     * @see http://schema.org/additionalType
47
     */
48
    public function additionalType($additionalType)
49
    {
50
        return $this->setProperty('additionalType', $additionalType);
51
    }
52
53
    /**
54
     * The direct performer or driver of the action (animate or inanimate). e.g.
55
     * *John* wrote a book.
56
     *
57
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $agent
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/agent
62
     */
63
    public function agent($agent)
64
    {
65
        return $this->setProperty('agent', $agent);
66
    }
67
68
    /**
69
     * An alias for the item.
70
     *
71
     * @param string|string[] $alternateName
72
     *
73
     * @return static
74
     *
75
     * @see http://schema.org/alternateName
76
     */
77
    public function alternateName($alternateName)
78
    {
79
        return $this->setProperty('alternateName', $alternateName);
80
    }
81
82
    /**
83
     * A description of the item.
84
     *
85
     * @param string|string[] $description
86
     *
87
     * @return static
88
     *
89
     * @see http://schema.org/description
90
     */
91
    public function description($description)
92
    {
93
        return $this->setProperty('description', $description);
94
    }
95
96
    /**
97
     * A sub property of description. A short description of the item used to
98
     * disambiguate from other, similar items. Information from other properties
99
     * (in particular, name) may be necessary for the description to be useful
100
     * for disambiguation.
101
     *
102
     * @param string|string[] $disambiguatingDescription
103
     *
104
     * @return static
105
     *
106
     * @see http://schema.org/disambiguatingDescription
107
     */
108
    public function disambiguatingDescription($disambiguatingDescription)
109
    {
110
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
111
    }
112
113
    /**
114
     * The endTime of something. For a reserved event or service (e.g.
115
     * FoodEstablishmentReservation), the time that it is expected to end. For
116
     * actions that span a period of time, when the action was performed. e.g.
117
     * John wrote a book from January to *December*. For media, including audio
118
     * and video, it's the time offset of the end of a clip within a larger
119
     * file.
120
     * 
121
     * Note that Event uses startDate/endDate instead of startTime/endTime, even
122
     * when describing dates with times. This situation may be clarified in
123
     * future revisions.
124
     *
125
     * @param \DateTimeInterface|\DateTimeInterface[] $endTime
126
     *
127
     * @return static
128
     *
129
     * @see http://schema.org/endTime
130
     */
131
    public function endTime($endTime)
132
    {
133
        return $this->setProperty('endTime', $endTime);
134
    }
135
136
    /**
137
     * For failed actions, more information on the cause of the failure.
138
     *
139
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $error
140
     *
141
     * @return static
142
     *
143
     * @see http://schema.org/error
144
     */
145
    public function error($error)
146
    {
147
        return $this->setProperty('error', $error);
148
    }
149
150
    /**
151
     * The identifier property represents any kind of identifier for any kind of
152
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
153
     * dedicated properties for representing many of these, either as textual
154
     * strings or as URL (URI) links. See [background
155
     * notes](/docs/datamodel.html#identifierBg) for more details.
156
     *
157
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
158
     *
159
     * @return static
160
     *
161
     * @see http://schema.org/identifier
162
     */
163
    public function identifier($identifier)
164
    {
165
        return $this->setProperty('identifier', $identifier);
166
    }
167
168
    /**
169
     * An image of the item. This can be a [[URL]] or a fully described
170
     * [[ImageObject]].
171
     *
172
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
173
     *
174
     * @return static
175
     *
176
     * @see http://schema.org/image
177
     */
178
    public function image($image)
179
    {
180
        return $this->setProperty('image', $image);
181
    }
182
183
    /**
184
     * The object that helped the agent perform the action. e.g. John wrote a
185
     * book with *a pen*.
186
     *
187
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $instrument
188
     *
189
     * @return static
190
     *
191
     * @see http://schema.org/instrument
192
     */
193
    public function instrument($instrument)
194
    {
195
        return $this->setProperty('instrument', $instrument);
196
    }
197
198
    /**
199
     * A sub property of participant. The owner of the real estate property.
200
     *
201
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $landlord
202
     *
203
     * @return static
204
     *
205
     * @see http://schema.org/landlord
206
     */
207
    public function landlord($landlord)
208
    {
209
        return $this->setProperty('landlord', $landlord);
210
    }
211
212
    /**
213
     * The location of for example where the event is happening, an organization
214
     * is located, or where an action takes place.
215
     *
216
     * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|\Spatie\SchemaOrg\Contracts\PostalAddressContract|\Spatie\SchemaOrg\Contracts\PostalAddressContract[]|string|string[] $location
217
     *
218
     * @return static
219
     *
220
     * @see http://schema.org/location
221
     */
222
    public function location($location)
223
    {
224
        return $this->setProperty('location', $location);
225
    }
226
227
    /**
228
     * Indicates a page (or other CreativeWork) for which this thing is the main
229
     * entity being described. See [background
230
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
231
     *
232
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
233
     *
234
     * @return static
235
     *
236
     * @see http://schema.org/mainEntityOfPage
237
     */
238
    public function mainEntityOfPage($mainEntityOfPage)
239
    {
240
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
241
    }
242
243
    /**
244
     * The name of the item.
245
     *
246
     * @param string|string[] $name
247
     *
248
     * @return static
249
     *
250
     * @see http://schema.org/name
251
     */
252
    public function name($name)
253
    {
254
        return $this->setProperty('name', $name);
255
    }
256
257
    /**
258
     * The object upon which the action is carried out, whose state is kept
259
     * intact or changed. Also known as the semantic roles patient, affected or
260
     * undergoer (which change their state) or theme (which doesn't). e.g. John
261
     * read *a book*.
262
     *
263
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $object
264
     *
265
     * @return static
266
     *
267
     * @see http://schema.org/object
268
     */
269
    public function object($object)
270
    {
271
        return $this->setProperty('object', $object);
272
    }
273
274
    /**
275
     * Other co-agents that participated in the action indirectly. e.g. John
276
     * wrote a book with *Steve*.
277
     *
278
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $participant
279
     *
280
     * @return static
281
     *
282
     * @see http://schema.org/participant
283
     */
284
    public function participant($participant)
285
    {
286
        return $this->setProperty('participant', $participant);
287
    }
288
289
    /**
290
     * Indicates a potential Action, which describes an idealized action in
291
     * which this thing would play an 'object' role.
292
     *
293
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
294
     *
295
     * @return static
296
     *
297
     * @see http://schema.org/potentialAction
298
     */
299
    public function potentialAction($potentialAction)
300
    {
301
        return $this->setProperty('potentialAction', $potentialAction);
302
    }
303
304
    /**
305
     * The offer price of a product, or of a price component when attached to
306
     * PriceSpecification and its subtypes.
307
     * 
308
     * Usage guidelines:
309
     * 
310
     * * Use the [[priceCurrency]] property (with standard formats: [ISO 4217
311
     * currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD";
312
     * [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies)
313
     * for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
314
     * Tradings
315
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
316
     * (LETS) and other currency types e.g. "Ithaca HOUR") instead of including
317
     * [ambiguous
318
     * symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign)
319
     * such as '$' in the value.
320
     * * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
321
     * decimal point. Avoid using these symbols as a readability separator.
322
     * * Note that both
323
     * [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute)
324
     * and Microdata syntax allow the use of a "content=" attribute for
325
     * publishing simple machine-readable values alongside more human-friendly
326
     * formatting.
327
     * * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
328
     * NINE' (U+0039)) rather than superficially similiar Unicode symbols.
329
     *
330
     * @param float|float[]|int|int[]|string|string[] $price
331
     *
332
     * @return static
333
     *
334
     * @see http://schema.org/price
335
     */
336
    public function price($price)
337
    {
338
        return $this->setProperty('price', $price);
339
    }
340
341
    /**
342
     * The currency of the price, or a price component when attached to
343
     * [[PriceSpecification]] and its subtypes.
344
     * 
345
     * Use standard formats: [ISO 4217 currency
346
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
347
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
348
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
349
     * Tradings
350
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
351
     * (LETS) and other currency types e.g. "Ithaca HOUR".
352
     *
353
     * @param string|string[] $priceCurrency
354
     *
355
     * @return static
356
     *
357
     * @see http://schema.org/priceCurrency
358
     */
359
    public function priceCurrency($priceCurrency)
360
    {
361
        return $this->setProperty('priceCurrency', $priceCurrency);
362
    }
363
364
    /**
365
     * One or more detailed price specifications, indicating the unit price and
366
     * delivery or payment charges.
367
     *
368
     * @param \Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[] $priceSpecification
369
     *
370
     * @return static
371
     *
372
     * @see http://schema.org/priceSpecification
373
     */
374
    public function priceSpecification($priceSpecification)
375
    {
376
        return $this->setProperty('priceSpecification', $priceSpecification);
377
    }
378
379
    /**
380
     * A sub property of participant. The real estate agent involved in the
381
     * action.
382
     *
383
     * @param \Spatie\SchemaOrg\Contracts\RealEstateAgentContract|\Spatie\SchemaOrg\Contracts\RealEstateAgentContract[] $realEstateAgent
384
     *
385
     * @return static
386
     *
387
     * @see http://schema.org/realEstateAgent
388
     */
389
    public function realEstateAgent($realEstateAgent)
390
    {
391
        return $this->setProperty('realEstateAgent', $realEstateAgent);
392
    }
393
394
    /**
395
     * The result produced in the action. e.g. John wrote *a book*.
396
     *
397
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $result
398
     *
399
     * @return static
400
     *
401
     * @see http://schema.org/result
402
     */
403
    public function result($result)
404
    {
405
        return $this->setProperty('result', $result);
406
    }
407
408
    /**
409
     * URL of a reference Web page that unambiguously indicates the item's
410
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
411
     * official website.
412
     *
413
     * @param string|string[] $sameAs
414
     *
415
     * @return static
416
     *
417
     * @see http://schema.org/sameAs
418
     */
419
    public function sameAs($sameAs)
420
    {
421
        return $this->setProperty('sameAs', $sameAs);
422
    }
423
424
    /**
425
     * The startTime of something. For a reserved event or service (e.g.
426
     * FoodEstablishmentReservation), the time that it is expected to start. For
427
     * actions that span a period of time, when the action was performed. e.g.
428
     * John wrote a book from *January* to December. For media, including audio
429
     * and video, it's the time offset of the start of a clip within a larger
430
     * file.
431
     * 
432
     * Note that Event uses startDate/endDate instead of startTime/endTime, even
433
     * when describing dates with times. This situation may be clarified in
434
     * future revisions.
435
     *
436
     * @param \DateTimeInterface|\DateTimeInterface[] $startTime
437
     *
438
     * @return static
439
     *
440
     * @see http://schema.org/startTime
441
     */
442
    public function startTime($startTime)
443
    {
444
        return $this->setProperty('startTime', $startTime);
445
    }
446
447
    /**
448
     * A CreativeWork or Event about this Thing.
449
     *
450
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
451
     *
452
     * @return static
453
     *
454
     * @see http://schema.org/subjectOf
455
     */
456
    public function subjectOf($subjectOf)
457
    {
458
        return $this->setProperty('subjectOf', $subjectOf);
459
    }
460
461
    /**
462
     * Indicates a target EntryPoint for an Action.
463
     *
464
     * @param \Spatie\SchemaOrg\Contracts\EntryPointContract|\Spatie\SchemaOrg\Contracts\EntryPointContract[] $target
465
     *
466
     * @return static
467
     *
468
     * @see http://schema.org/target
469
     */
470
    public function target($target)
471
    {
472
        return $this->setProperty('target', $target);
473
    }
474
475
    /**
476
     * URL of the item.
477
     *
478
     * @param string|string[] $url
479
     *
480
     * @return static
481
     *
482
     * @see http://schema.org/url
483
     */
484
    public function url($url)
485
    {
486
        return $this->setProperty('url', $url);
487
    }
488
489
}
490