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