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