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/ParentAudience.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\ParentAudienceContract;
6
use \Spatie\SchemaOrg\Contracts\AudienceContract;
7
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
8
use \Spatie\SchemaOrg\Contracts\PeopleAudienceContract;
9
use \Spatie\SchemaOrg\Contracts\ThingContract;
10
11
/**
12
 * A set of characteristics describing parents, who can be interested in viewing
13
 * some content.
14
 *
15
 * @see http://schema.org/ParentAudience
16
 *
17
 */
18 View Code Duplication
class ParentAudience extends BaseType implements ParentAudienceContract, AudienceContract, IntangibleContract, PeopleAudienceContract, 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...
19
{
20
    /**
21
     * An additional type for the item, typically used for adding more specific
22
     * types from external vocabularies in microdata syntax. This is a
23
     * relationship between something and a class that the thing is in. In RDFa
24
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
25
     * attribute - for multiple types. Schema.org tools may have only weaker
26
     * understanding of extra types, in particular those defined externally.
27
     *
28
     * @param string|string[] $additionalType
29
     *
30
     * @return static
31
     *
32
     * @see http://schema.org/additionalType
33
     */
34
    public function additionalType($additionalType)
35
    {
36
        return $this->setProperty('additionalType', $additionalType);
37
    }
38
39
    /**
40
     * An alias for the item.
41
     *
42
     * @param string|string[] $alternateName
43
     *
44
     * @return static
45
     *
46
     * @see http://schema.org/alternateName
47
     */
48
    public function alternateName($alternateName)
49
    {
50
        return $this->setProperty('alternateName', $alternateName);
51
    }
52
53
    /**
54
     * The target group associated with a given audience (e.g. veterans, car
55
     * owners, musicians, etc.).
56
     *
57
     * @param string|string[] $audienceType
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/audienceType
62
     */
63
    public function audienceType($audienceType)
64
    {
65
        return $this->setProperty('audienceType', $audienceType);
66
    }
67
68
    /**
69
     * Maximal age of the child.
70
     *
71
     * @param float|float[]|int|int[] $childMaxAge
72
     *
73
     * @return static
74
     *
75
     * @see http://schema.org/childMaxAge
76
     */
77
    public function childMaxAge($childMaxAge)
78
    {
79
        return $this->setProperty('childMaxAge', $childMaxAge);
80
    }
81
82
    /**
83
     * Minimal age of the child.
84
     *
85
     * @param float|float[]|int|int[] $childMinAge
86
     *
87
     * @return static
88
     *
89
     * @see http://schema.org/childMinAge
90
     */
91
    public function childMinAge($childMinAge)
92
    {
93
        return $this->setProperty('childMinAge', $childMinAge);
94
    }
95
96
    /**
97
     * A description of the item.
98
     *
99
     * @param string|string[] $description
100
     *
101
     * @return static
102
     *
103
     * @see http://schema.org/description
104
     */
105
    public function description($description)
106
    {
107
        return $this->setProperty('description', $description);
108
    }
109
110
    /**
111
     * A sub property of description. A short description of the item used to
112
     * disambiguate from other, similar items. Information from other properties
113
     * (in particular, name) may be necessary for the description to be useful
114
     * for disambiguation.
115
     *
116
     * @param string|string[] $disambiguatingDescription
117
     *
118
     * @return static
119
     *
120
     * @see http://schema.org/disambiguatingDescription
121
     */
122
    public function disambiguatingDescription($disambiguatingDescription)
123
    {
124
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
125
    }
126
127
    /**
128
     * The geographic area associated with the audience.
129
     *
130
     * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[] $geographicArea
131
     *
132
     * @return static
133
     *
134
     * @see http://schema.org/geographicArea
135
     */
136
    public function geographicArea($geographicArea)
137
    {
138
        return $this->setProperty('geographicArea', $geographicArea);
139
    }
140
141
    /**
142
     * The identifier property represents any kind of identifier for any kind of
143
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
144
     * dedicated properties for representing many of these, either as textual
145
     * strings or as URL (URI) links. See [background
146
     * notes](/docs/datamodel.html#identifierBg) for more details.
147
     *
148
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
149
     *
150
     * @return static
151
     *
152
     * @see http://schema.org/identifier
153
     */
154
    public function identifier($identifier)
155
    {
156
        return $this->setProperty('identifier', $identifier);
157
    }
158
159
    /**
160
     * An image of the item. This can be a [[URL]] or a fully described
161
     * [[ImageObject]].
162
     *
163
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
164
     *
165
     * @return static
166
     *
167
     * @see http://schema.org/image
168
     */
169
    public function image($image)
170
    {
171
        return $this->setProperty('image', $image);
172
    }
173
174
    /**
175
     * Indicates a page (or other CreativeWork) for which this thing is the main
176
     * entity being described. See [background
177
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
178
     *
179
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
180
     *
181
     * @return static
182
     *
183
     * @see http://schema.org/mainEntityOfPage
184
     */
185
    public function mainEntityOfPage($mainEntityOfPage)
186
    {
187
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
188
    }
189
190
    /**
191
     * The name of the item.
192
     *
193
     * @param string|string[] $name
194
     *
195
     * @return static
196
     *
197
     * @see http://schema.org/name
198
     */
199
    public function name($name)
200
    {
201
        return $this->setProperty('name', $name);
202
    }
203
204
    /**
205
     * Indicates a potential Action, which describes an idealized action in
206
     * which this thing would play an 'object' role.
207
     *
208
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
209
     *
210
     * @return static
211
     *
212
     * @see http://schema.org/potentialAction
213
     */
214
    public function potentialAction($potentialAction)
215
    {
216
        return $this->setProperty('potentialAction', $potentialAction);
217
    }
218
219
    /**
220
     * Audiences defined by a person's gender.
221
     *
222
     * @param string|string[] $requiredGender
223
     *
224
     * @return static
225
     *
226
     * @see http://schema.org/requiredGender
227
     */
228
    public function requiredGender($requiredGender)
229
    {
230
        return $this->setProperty('requiredGender', $requiredGender);
231
    }
232
233
    /**
234
     * Audiences defined by a person's maximum age.
235
     *
236
     * @param int|int[] $requiredMaxAge
237
     *
238
     * @return static
239
     *
240
     * @see http://schema.org/requiredMaxAge
241
     */
242
    public function requiredMaxAge($requiredMaxAge)
243
    {
244
        return $this->setProperty('requiredMaxAge', $requiredMaxAge);
245
    }
246
247
    /**
248
     * Audiences defined by a person's minimum age.
249
     *
250
     * @param int|int[] $requiredMinAge
251
     *
252
     * @return static
253
     *
254
     * @see http://schema.org/requiredMinAge
255
     */
256
    public function requiredMinAge($requiredMinAge)
257
    {
258
        return $this->setProperty('requiredMinAge', $requiredMinAge);
259
    }
260
261
    /**
262
     * URL of a reference Web page that unambiguously indicates the item's
263
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
264
     * official website.
265
     *
266
     * @param string|string[] $sameAs
267
     *
268
     * @return static
269
     *
270
     * @see http://schema.org/sameAs
271
     */
272
    public function sameAs($sameAs)
273
    {
274
        return $this->setProperty('sameAs', $sameAs);
275
    }
276
277
    /**
278
     * A CreativeWork or Event about this Thing.
279
     *
280
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
281
     *
282
     * @return static
283
     *
284
     * @see http://schema.org/subjectOf
285
     */
286
    public function subjectOf($subjectOf)
287
    {
288
        return $this->setProperty('subjectOf', $subjectOf);
289
    }
290
291
    /**
292
     * The gender of the person or audience.
293
     *
294
     * @param string|string[] $suggestedGender
295
     *
296
     * @return static
297
     *
298
     * @see http://schema.org/suggestedGender
299
     */
300
    public function suggestedGender($suggestedGender)
301
    {
302
        return $this->setProperty('suggestedGender', $suggestedGender);
303
    }
304
305
    /**
306
     * Maximal age recommended for viewing content.
307
     *
308
     * @param float|float[]|int|int[] $suggestedMaxAge
309
     *
310
     * @return static
311
     *
312
     * @see http://schema.org/suggestedMaxAge
313
     */
314
    public function suggestedMaxAge($suggestedMaxAge)
315
    {
316
        return $this->setProperty('suggestedMaxAge', $suggestedMaxAge);
317
    }
318
319
    /**
320
     * Minimal age recommended for viewing content.
321
     *
322
     * @param float|float[]|int|int[] $suggestedMinAge
323
     *
324
     * @return static
325
     *
326
     * @see http://schema.org/suggestedMinAge
327
     */
328
    public function suggestedMinAge($suggestedMinAge)
329
    {
330
        return $this->setProperty('suggestedMinAge', $suggestedMinAge);
331
    }
332
333
    /**
334
     * URL of the item.
335
     *
336
     * @param string|string[] $url
337
     *
338
     * @return static
339
     *
340
     * @see http://schema.org/url
341
     */
342
    public function url($url)
343
    {
344
        return $this->setProperty('url', $url);
345
    }
346
347
}
348