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/PerformanceRole.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\PerformanceRoleContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\RoleContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A PerformanceRole is a Role that some entity places with regard to a
12
 * theatrical performance, e.g. in a Movie, TVSeries etc.
13
 *
14
 * @see http://schema.org/PerformanceRole
15
 *
16
 */
17 View Code Duplication
class PerformanceRole extends BaseType implements PerformanceRoleContract, IntangibleContract, RoleContract, 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...
18
{
19
    /**
20
     * An additional type for the item, typically used for adding more specific
21
     * types from external vocabularies in microdata syntax. This is a
22
     * relationship between something and a class that the thing is in. In RDFa
23
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
24
     * attribute - for multiple types. Schema.org tools may have only weaker
25
     * understanding of extra types, in particular those defined externally.
26
     *
27
     * @param string|string[] $additionalType
28
     *
29
     * @return static
30
     *
31
     * @see http://schema.org/additionalType
32
     */
33
    public function additionalType($additionalType)
34
    {
35
        return $this->setProperty('additionalType', $additionalType);
36
    }
37
38
    /**
39
     * An alias for the item.
40
     *
41
     * @param string|string[] $alternateName
42
     *
43
     * @return static
44
     *
45
     * @see http://schema.org/alternateName
46
     */
47
    public function alternateName($alternateName)
48
    {
49
        return $this->setProperty('alternateName', $alternateName);
50
    }
51
52
    /**
53
     * The name of a character played in some acting or performing role, i.e. in
54
     * a PerformanceRole.
55
     *
56
     * @param string|string[] $characterName
57
     *
58
     * @return static
59
     *
60
     * @see http://schema.org/characterName
61
     */
62
    public function characterName($characterName)
63
    {
64
        return $this->setProperty('characterName', $characterName);
65
    }
66
67
    /**
68
     * A description of the item.
69
     *
70
     * @param string|string[] $description
71
     *
72
     * @return static
73
     *
74
     * @see http://schema.org/description
75
     */
76
    public function description($description)
77
    {
78
        return $this->setProperty('description', $description);
79
    }
80
81
    /**
82
     * A sub property of description. A short description of the item used to
83
     * disambiguate from other, similar items. Information from other properties
84
     * (in particular, name) may be necessary for the description to be useful
85
     * for disambiguation.
86
     *
87
     * @param string|string[] $disambiguatingDescription
88
     *
89
     * @return static
90
     *
91
     * @see http://schema.org/disambiguatingDescription
92
     */
93
    public function disambiguatingDescription($disambiguatingDescription)
94
    {
95
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
96
    }
97
98
    /**
99
     * The end date and time of the item (in [ISO 8601 date
100
     * format](http://en.wikipedia.org/wiki/ISO_8601)).
101
     *
102
     * @param \DateTimeInterface|\DateTimeInterface[] $endDate
103
     *
104
     * @return static
105
     *
106
     * @see http://schema.org/endDate
107
     */
108
    public function endDate($endDate)
109
    {
110
        return $this->setProperty('endDate', $endDate);
111
    }
112
113
    /**
114
     * The identifier property represents any kind of identifier for any kind of
115
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
116
     * dedicated properties for representing many of these, either as textual
117
     * strings or as URL (URI) links. See [background
118
     * notes](/docs/datamodel.html#identifierBg) for more details.
119
     *
120
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
121
     *
122
     * @return static
123
     *
124
     * @see http://schema.org/identifier
125
     */
126
    public function identifier($identifier)
127
    {
128
        return $this->setProperty('identifier', $identifier);
129
    }
130
131
    /**
132
     * An image of the item. This can be a [[URL]] or a fully described
133
     * [[ImageObject]].
134
     *
135
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
136
     *
137
     * @return static
138
     *
139
     * @see http://schema.org/image
140
     */
141
    public function image($image)
142
    {
143
        return $this->setProperty('image', $image);
144
    }
145
146
    /**
147
     * Indicates a page (or other CreativeWork) for which this thing is the main
148
     * entity being described. See [background
149
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
150
     *
151
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
152
     *
153
     * @return static
154
     *
155
     * @see http://schema.org/mainEntityOfPage
156
     */
157
    public function mainEntityOfPage($mainEntityOfPage)
158
    {
159
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
160
    }
161
162
    /**
163
     * The name of the item.
164
     *
165
     * @param string|string[] $name
166
     *
167
     * @return static
168
     *
169
     * @see http://schema.org/name
170
     */
171
    public function name($name)
172
    {
173
        return $this->setProperty('name', $name);
174
    }
175
176
    /**
177
     * A position played, performed or filled by a person or organization, as
178
     * part of an organization. For example, an athlete in a SportsTeam might
179
     * play in the position named 'Quarterback'.
180
     *
181
     * @param string|string[] $namedPosition
182
     *
183
     * @return static
184
     *
185
     * @see http://schema.org/namedPosition
186
     */
187
    public function namedPosition($namedPosition)
188
    {
189
        return $this->setProperty('namedPosition', $namedPosition);
190
    }
191
192
    /**
193
     * Indicates a potential Action, which describes an idealized action in
194
     * which this thing would play an 'object' role.
195
     *
196
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
197
     *
198
     * @return static
199
     *
200
     * @see http://schema.org/potentialAction
201
     */
202
    public function potentialAction($potentialAction)
203
    {
204
        return $this->setProperty('potentialAction', $potentialAction);
205
    }
206
207
    /**
208
     * A role played, performed or filled by a person or organization. For
209
     * example, the team of creators for a comic book might fill the roles named
210
     * 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might
211
     * play in the position named 'Quarterback'.
212
     *
213
     * @param string|string[] $roleName
214
     *
215
     * @return static
216
     *
217
     * @see http://schema.org/roleName
218
     */
219
    public function roleName($roleName)
220
    {
221
        return $this->setProperty('roleName', $roleName);
222
    }
223
224
    /**
225
     * URL of a reference Web page that unambiguously indicates the item's
226
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
227
     * official website.
228
     *
229
     * @param string|string[] $sameAs
230
     *
231
     * @return static
232
     *
233
     * @see http://schema.org/sameAs
234
     */
235
    public function sameAs($sameAs)
236
    {
237
        return $this->setProperty('sameAs', $sameAs);
238
    }
239
240
    /**
241
     * The start date and time of the item (in [ISO 8601 date
242
     * format](http://en.wikipedia.org/wiki/ISO_8601)).
243
     *
244
     * @param \DateTimeInterface|\DateTimeInterface[] $startDate
245
     *
246
     * @return static
247
     *
248
     * @see http://schema.org/startDate
249
     */
250
    public function startDate($startDate)
251
    {
252
        return $this->setProperty('startDate', $startDate);
253
    }
254
255
    /**
256
     * A CreativeWork or Event about this Thing.
257
     *
258
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
259
     *
260
     * @return static
261
     *
262
     * @see http://schema.org/subjectOf
263
     */
264
    public function subjectOf($subjectOf)
265
    {
266
        return $this->setProperty('subjectOf', $subjectOf);
267
    }
268
269
    /**
270
     * URL of the item.
271
     *
272
     * @param string|string[] $url
273
     *
274
     * @return static
275
     *
276
     * @see http://schema.org/url
277
     */
278
    public function url($url)
279
    {
280
        return $this->setProperty('url', $url);
281
    }
282
283
}
284