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/WearAction.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\WearActionContract;
6
use \Spatie\SchemaOrg\Contracts\ActionContract;
7
use \Spatie\SchemaOrg\Contracts\ConsumeActionContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
use \Spatie\SchemaOrg\Contracts\UseActionContract;
10
11
/**
12
 * The act of dressing oneself in clothing.
13
 *
14
 * @see http://schema.org/WearAction
15
 *
16
 */
17 View Code Duplication
class WearAction extends BaseType implements WearActionContract, ActionContract, ConsumeActionContract, ThingContract, UseActionContract
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...
18
{
19
    /**
20
     * A set of requirements that a must be fulfilled in order to perform an
21
     * Action. If more than one value is specied, fulfilling one set of
22
     * requirements will allow the Action to be performed.
23
     *
24
     * @param \Spatie\SchemaOrg\Contracts\ActionAccessSpecificationContract|\Spatie\SchemaOrg\Contracts\ActionAccessSpecificationContract[] $actionAccessibilityRequirement
25
     *
26
     * @return static
27
     *
28
     * @see http://schema.org/actionAccessibilityRequirement
29
     */
30
    public function actionAccessibilityRequirement($actionAccessibilityRequirement)
31
    {
32
        return $this->setProperty('actionAccessibilityRequirement', $actionAccessibilityRequirement);
33
    }
34
35
    /**
36
     * Indicates the current disposition of the Action.
37
     *
38
     * @param \Spatie\SchemaOrg\Contracts\ActionStatusTypeContract|\Spatie\SchemaOrg\Contracts\ActionStatusTypeContract[] $actionStatus
39
     *
40
     * @return static
41
     *
42
     * @see http://schema.org/actionStatus
43
     */
44
    public function actionStatus($actionStatus)
45
    {
46
        return $this->setProperty('actionStatus', $actionStatus);
47
    }
48
49
    /**
50
     * An additional type for the item, typically used for adding more specific
51
     * types from external vocabularies in microdata syntax. This is a
52
     * relationship between something and a class that the thing is in. In RDFa
53
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
54
     * attribute - for multiple types. Schema.org tools may have only weaker
55
     * understanding of extra types, in particular those defined externally.
56
     *
57
     * @param string|string[] $additionalType
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/additionalType
62
     */
63
    public function additionalType($additionalType)
64
    {
65
        return $this->setProperty('additionalType', $additionalType);
66
    }
67
68
    /**
69
     * The direct performer or driver of the action (animate or inanimate). e.g.
70
     * *John* wrote a book.
71
     *
72
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $agent
73
     *
74
     * @return static
75
     *
76
     * @see http://schema.org/agent
77
     */
78
    public function agent($agent)
79
    {
80
        return $this->setProperty('agent', $agent);
81
    }
82
83
    /**
84
     * An alias for the item.
85
     *
86
     * @param string|string[] $alternateName
87
     *
88
     * @return static
89
     *
90
     * @see http://schema.org/alternateName
91
     */
92
    public function alternateName($alternateName)
93
    {
94
        return $this->setProperty('alternateName', $alternateName);
95
    }
96
97
    /**
98
     * A description of the item.
99
     *
100
     * @param string|string[] $description
101
     *
102
     * @return static
103
     *
104
     * @see http://schema.org/description
105
     */
106
    public function description($description)
107
    {
108
        return $this->setProperty('description', $description);
109
    }
110
111
    /**
112
     * A sub property of description. A short description of the item used to
113
     * disambiguate from other, similar items. Information from other properties
114
     * (in particular, name) may be necessary for the description to be useful
115
     * for disambiguation.
116
     *
117
     * @param string|string[] $disambiguatingDescription
118
     *
119
     * @return static
120
     *
121
     * @see http://schema.org/disambiguatingDescription
122
     */
123
    public function disambiguatingDescription($disambiguatingDescription)
124
    {
125
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
126
    }
127
128
    /**
129
     * The endTime of something. For a reserved event or service (e.g.
130
     * FoodEstablishmentReservation), the time that it is expected to end. For
131
     * actions that span a period of time, when the action was performed. e.g.
132
     * John wrote a book from January to *December*. For media, including audio
133
     * and video, it's the time offset of the end of a clip within a larger
134
     * file.
135
     * 
136
     * Note that Event uses startDate/endDate instead of startTime/endTime, even
137
     * when describing dates with times. This situation may be clarified in
138
     * future revisions.
139
     *
140
     * @param \DateTimeInterface|\DateTimeInterface[] $endTime
141
     *
142
     * @return static
143
     *
144
     * @see http://schema.org/endTime
145
     */
146
    public function endTime($endTime)
147
    {
148
        return $this->setProperty('endTime', $endTime);
149
    }
150
151
    /**
152
     * For failed actions, more information on the cause of the failure.
153
     *
154
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $error
155
     *
156
     * @return static
157
     *
158
     * @see http://schema.org/error
159
     */
160
    public function error($error)
161
    {
162
        return $this->setProperty('error', $error);
163
    }
164
165
    /**
166
     * An Offer which must be accepted before the user can perform the Action.
167
     * For example, the user may need to buy a movie before being able to watch
168
     * it.
169
     *
170
     * @param \Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $expectsAcceptanceOf
171
     *
172
     * @return static
173
     *
174
     * @see http://schema.org/expectsAcceptanceOf
175
     */
176
    public function expectsAcceptanceOf($expectsAcceptanceOf)
177
    {
178
        return $this->setProperty('expectsAcceptanceOf', $expectsAcceptanceOf);
179
    }
180
181
    /**
182
     * The identifier property represents any kind of identifier for any kind of
183
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
184
     * dedicated properties for representing many of these, either as textual
185
     * strings or as URL (URI) links. See [background
186
     * notes](/docs/datamodel.html#identifierBg) for more details.
187
     *
188
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
189
     *
190
     * @return static
191
     *
192
     * @see http://schema.org/identifier
193
     */
194
    public function identifier($identifier)
195
    {
196
        return $this->setProperty('identifier', $identifier);
197
    }
198
199
    /**
200
     * An image of the item. This can be a [[URL]] or a fully described
201
     * [[ImageObject]].
202
     *
203
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
204
     *
205
     * @return static
206
     *
207
     * @see http://schema.org/image
208
     */
209
    public function image($image)
210
    {
211
        return $this->setProperty('image', $image);
212
    }
213
214
    /**
215
     * The object that helped the agent perform the action. e.g. John wrote a
216
     * book with *a pen*.
217
     *
218
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $instrument
219
     *
220
     * @return static
221
     *
222
     * @see http://schema.org/instrument
223
     */
224
    public function instrument($instrument)
225
    {
226
        return $this->setProperty('instrument', $instrument);
227
    }
228
229
    /**
230
     * The location of for example where the event is happening, an organization
231
     * is located, or where an action takes place.
232
     *
233
     * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|\Spatie\SchemaOrg\Contracts\PostalAddressContract|\Spatie\SchemaOrg\Contracts\PostalAddressContract[]|string|string[] $location
234
     *
235
     * @return static
236
     *
237
     * @see http://schema.org/location
238
     */
239
    public function location($location)
240
    {
241
        return $this->setProperty('location', $location);
242
    }
243
244
    /**
245
     * Indicates a page (or other CreativeWork) for which this thing is the main
246
     * entity being described. See [background
247
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
248
     *
249
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
250
     *
251
     * @return static
252
     *
253
     * @see http://schema.org/mainEntityOfPage
254
     */
255
    public function mainEntityOfPage($mainEntityOfPage)
256
    {
257
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
258
    }
259
260
    /**
261
     * The name of the item.
262
     *
263
     * @param string|string[] $name
264
     *
265
     * @return static
266
     *
267
     * @see http://schema.org/name
268
     */
269
    public function name($name)
270
    {
271
        return $this->setProperty('name', $name);
272
    }
273
274
    /**
275
     * The object upon which the action is carried out, whose state is kept
276
     * intact or changed. Also known as the semantic roles patient, affected or
277
     * undergoer (which change their state) or theme (which doesn't). e.g. John
278
     * read *a book*.
279
     *
280
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $object
281
     *
282
     * @return static
283
     *
284
     * @see http://schema.org/object
285
     */
286
    public function object($object)
287
    {
288
        return $this->setProperty('object', $object);
289
    }
290
291
    /**
292
     * Other co-agents that participated in the action indirectly. e.g. John
293
     * wrote a book with *Steve*.
294
     *
295
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $participant
296
     *
297
     * @return static
298
     *
299
     * @see http://schema.org/participant
300
     */
301
    public function participant($participant)
302
    {
303
        return $this->setProperty('participant', $participant);
304
    }
305
306
    /**
307
     * Indicates a potential Action, which describes an idealized action in
308
     * which this thing would play an 'object' role.
309
     *
310
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
311
     *
312
     * @return static
313
     *
314
     * @see http://schema.org/potentialAction
315
     */
316
    public function potentialAction($potentialAction)
317
    {
318
        return $this->setProperty('potentialAction', $potentialAction);
319
    }
320
321
    /**
322
     * The result produced in the action. e.g. John wrote *a book*.
323
     *
324
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $result
325
     *
326
     * @return static
327
     *
328
     * @see http://schema.org/result
329
     */
330
    public function result($result)
331
    {
332
        return $this->setProperty('result', $result);
333
    }
334
335
    /**
336
     * URL of a reference Web page that unambiguously indicates the item's
337
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
338
     * official website.
339
     *
340
     * @param string|string[] $sameAs
341
     *
342
     * @return static
343
     *
344
     * @see http://schema.org/sameAs
345
     */
346
    public function sameAs($sameAs)
347
    {
348
        return $this->setProperty('sameAs', $sameAs);
349
    }
350
351
    /**
352
     * The startTime of something. For a reserved event or service (e.g.
353
     * FoodEstablishmentReservation), the time that it is expected to start. For
354
     * actions that span a period of time, when the action was performed. e.g.
355
     * John wrote a book from *January* to December. For media, including audio
356
     * and video, it's the time offset of the start of a clip within a larger
357
     * file.
358
     * 
359
     * Note that Event uses startDate/endDate instead of startTime/endTime, even
360
     * when describing dates with times. This situation may be clarified in
361
     * future revisions.
362
     *
363
     * @param \DateTimeInterface|\DateTimeInterface[] $startTime
364
     *
365
     * @return static
366
     *
367
     * @see http://schema.org/startTime
368
     */
369
    public function startTime($startTime)
370
    {
371
        return $this->setProperty('startTime', $startTime);
372
    }
373
374
    /**
375
     * A CreativeWork or Event about this Thing.
376
     *
377
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
378
     *
379
     * @return static
380
     *
381
     * @see http://schema.org/subjectOf
382
     */
383
    public function subjectOf($subjectOf)
384
    {
385
        return $this->setProperty('subjectOf', $subjectOf);
386
    }
387
388
    /**
389
     * Indicates a target EntryPoint for an Action.
390
     *
391
     * @param \Spatie\SchemaOrg\Contracts\EntryPointContract|\Spatie\SchemaOrg\Contracts\EntryPointContract[] $target
392
     *
393
     * @return static
394
     *
395
     * @see http://schema.org/target
396
     */
397
    public function target($target)
398
    {
399
        return $this->setProperty('target', $target);
400
    }
401
402
    /**
403
     * URL of the item.
404
     *
405
     * @param string|string[] $url
406
     *
407
     * @return static
408
     *
409
     * @see http://schema.org/url
410
     */
411
    public function url($url)
412
    {
413
        return $this->setProperty('url', $url);
414
    }
415
416
}
417