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/DeliveryChargeSpecification.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\DeliveryChargeSpecificationContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\PriceSpecificationContract;
8
use \Spatie\SchemaOrg\Contracts\StructuredValueContract;
9
use \Spatie\SchemaOrg\Contracts\ThingContract;
10
11
/**
12
 * The price for the delivery of an offer using a particular delivery method.
13
 *
14
 * @see http://schema.org/DeliveryChargeSpecification
15
 *
16
 */
17 View Code Duplication
class DeliveryChargeSpecification extends BaseType implements DeliveryChargeSpecificationContract, IntangibleContract, PriceSpecificationContract, StructuredValueContract, 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 delivery method(s) to which the delivery charge or payment charge
54
     * specification applies.
55
     *
56
     * @param \Spatie\SchemaOrg\Contracts\DeliveryMethodContract|\Spatie\SchemaOrg\Contracts\DeliveryMethodContract[] $appliesToDeliveryMethod
57
     *
58
     * @return static
59
     *
60
     * @see http://schema.org/appliesToDeliveryMethod
61
     */
62
    public function appliesToDeliveryMethod($appliesToDeliveryMethod)
63
    {
64
        return $this->setProperty('appliesToDeliveryMethod', $appliesToDeliveryMethod);
65
    }
66
67
    /**
68
     * The geographic area where a service or offered item is provided.
69
     *
70
     * @param \Spatie\SchemaOrg\Contracts\AdministrativeAreaContract|\Spatie\SchemaOrg\Contracts\AdministrativeAreaContract[]|\Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|string|string[] $areaServed
71
     *
72
     * @return static
73
     *
74
     * @see http://schema.org/areaServed
75
     */
76
    public function areaServed($areaServed)
77
    {
78
        return $this->setProperty('areaServed', $areaServed);
79
    }
80
81
    /**
82
     * A description of the item.
83
     *
84
     * @param string|string[] $description
85
     *
86
     * @return static
87
     *
88
     * @see http://schema.org/description
89
     */
90
    public function description($description)
91
    {
92
        return $this->setProperty('description', $description);
93
    }
94
95
    /**
96
     * A sub property of description. A short description of the item used to
97
     * disambiguate from other, similar items. Information from other properties
98
     * (in particular, name) may be necessary for the description to be useful
99
     * for disambiguation.
100
     *
101
     * @param string|string[] $disambiguatingDescription
102
     *
103
     * @return static
104
     *
105
     * @see http://schema.org/disambiguatingDescription
106
     */
107
    public function disambiguatingDescription($disambiguatingDescription)
108
    {
109
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
110
    }
111
112
    /**
113
     * The interval and unit of measurement of ordering quantities for which the
114
     * offer or price specification is valid. This allows e.g. specifying that a
115
     * certain freight charge is valid only for a certain quantity.
116
     *
117
     * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[] $eligibleQuantity
118
     *
119
     * @return static
120
     *
121
     * @see http://schema.org/eligibleQuantity
122
     */
123
    public function eligibleQuantity($eligibleQuantity)
124
    {
125
        return $this->setProperty('eligibleQuantity', $eligibleQuantity);
126
    }
127
128
    /**
129
     * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the
130
     * GeoShape for the geo-political region(s) for which the offer or delivery
131
     * charge specification is valid.
132
     * 
133
     * See also [[ineligibleRegion]].
134
     *
135
     * @param \Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|string|string[] $eligibleRegion
136
     *
137
     * @return static
138
     *
139
     * @see http://schema.org/eligibleRegion
140
     */
141
    public function eligibleRegion($eligibleRegion)
142
    {
143
        return $this->setProperty('eligibleRegion', $eligibleRegion);
144
    }
145
146
    /**
147
     * The transaction volume, in a monetary unit, for which the offer or price
148
     * specification is valid, e.g. for indicating a minimal purchasing volume,
149
     * to express free shipping above a certain order volume, or to limit the
150
     * acceptance of credit cards to purchases to a certain minimal amount.
151
     *
152
     * @param \Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[] $eligibleTransactionVolume
153
     *
154
     * @return static
155
     *
156
     * @see http://schema.org/eligibleTransactionVolume
157
     */
158
    public function eligibleTransactionVolume($eligibleTransactionVolume)
159
    {
160
        return $this->setProperty('eligibleTransactionVolume', $eligibleTransactionVolume);
161
    }
162
163
    /**
164
     * The identifier property represents any kind of identifier for any kind of
165
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
166
     * dedicated properties for representing many of these, either as textual
167
     * strings or as URL (URI) links. See [background
168
     * notes](/docs/datamodel.html#identifierBg) for more details.
169
     *
170
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
171
     *
172
     * @return static
173
     *
174
     * @see http://schema.org/identifier
175
     */
176
    public function identifier($identifier)
177
    {
178
        return $this->setProperty('identifier', $identifier);
179
    }
180
181
    /**
182
     * An image of the item. This can be a [[URL]] or a fully described
183
     * [[ImageObject]].
184
     *
185
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
186
     *
187
     * @return static
188
     *
189
     * @see http://schema.org/image
190
     */
191
    public function image($image)
192
    {
193
        return $this->setProperty('image', $image);
194
    }
195
196
    /**
197
     * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the
198
     * GeoShape for the geo-political region(s) for which the offer or delivery
199
     * charge specification is not valid, e.g. a region where the transaction is
200
     * not allowed.
201
     * 
202
     * See also [[eligibleRegion]].
203
     *
204
     * @param \Spatie\SchemaOrg\Contracts\GeoShapeContract|\Spatie\SchemaOrg\Contracts\GeoShapeContract[]|\Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[]|string|string[] $ineligibleRegion
205
     *
206
     * @return static
207
     *
208
     * @see http://schema.org/ineligibleRegion
209
     */
210
    public function ineligibleRegion($ineligibleRegion)
211
    {
212
        return $this->setProperty('ineligibleRegion', $ineligibleRegion);
213
    }
214
215
    /**
216
     * Indicates a page (or other CreativeWork) for which this thing is the main
217
     * entity being described. See [background
218
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
219
     *
220
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
221
     *
222
     * @return static
223
     *
224
     * @see http://schema.org/mainEntityOfPage
225
     */
226
    public function mainEntityOfPage($mainEntityOfPage)
227
    {
228
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
229
    }
230
231
    /**
232
     * The highest price if the price is a range.
233
     *
234
     * @param float|float[]|int|int[] $maxPrice
235
     *
236
     * @return static
237
     *
238
     * @see http://schema.org/maxPrice
239
     */
240
    public function maxPrice($maxPrice)
241
    {
242
        return $this->setProperty('maxPrice', $maxPrice);
243
    }
244
245
    /**
246
     * The lowest price if the price is a range.
247
     *
248
     * @param float|float[]|int|int[] $minPrice
249
     *
250
     * @return static
251
     *
252
     * @see http://schema.org/minPrice
253
     */
254
    public function minPrice($minPrice)
255
    {
256
        return $this->setProperty('minPrice', $minPrice);
257
    }
258
259
    /**
260
     * The name of the item.
261
     *
262
     * @param string|string[] $name
263
     *
264
     * @return static
265
     *
266
     * @see http://schema.org/name
267
     */
268
    public function name($name)
269
    {
270
        return $this->setProperty('name', $name);
271
    }
272
273
    /**
274
     * Indicates a potential Action, which describes an idealized action in
275
     * which this thing would play an 'object' role.
276
     *
277
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
278
     *
279
     * @return static
280
     *
281
     * @see http://schema.org/potentialAction
282
     */
283
    public function potentialAction($potentialAction)
284
    {
285
        return $this->setProperty('potentialAction', $potentialAction);
286
    }
287
288
    /**
289
     * The offer price of a product, or of a price component when attached to
290
     * PriceSpecification and its subtypes.
291
     * 
292
     * Usage guidelines:
293
     * 
294
     * * Use the [[priceCurrency]] property (with standard formats: [ISO 4217
295
     * currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD";
296
     * [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies)
297
     * for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
298
     * Tradings
299
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
300
     * (LETS) and other currency types e.g. "Ithaca HOUR") instead of including
301
     * [ambiguous
302
     * symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign)
303
     * such as '$' in the value.
304
     * * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
305
     * decimal point. Avoid using these symbols as a readability separator.
306
     * * Note that both
307
     * [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute)
308
     * and Microdata syntax allow the use of a "content=" attribute for
309
     * publishing simple machine-readable values alongside more human-friendly
310
     * formatting.
311
     * * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
312
     * NINE' (U+0039)) rather than superficially similiar Unicode symbols.
313
     *
314
     * @param float|float[]|int|int[]|string|string[] $price
315
     *
316
     * @return static
317
     *
318
     * @see http://schema.org/price
319
     */
320
    public function price($price)
321
    {
322
        return $this->setProperty('price', $price);
323
    }
324
325
    /**
326
     * The currency of the price, or a price component when attached to
327
     * [[PriceSpecification]] and its subtypes.
328
     * 
329
     * Use standard formats: [ISO 4217 currency
330
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
331
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
332
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
333
     * Tradings
334
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
335
     * (LETS) and other currency types e.g. "Ithaca HOUR".
336
     *
337
     * @param string|string[] $priceCurrency
338
     *
339
     * @return static
340
     *
341
     * @see http://schema.org/priceCurrency
342
     */
343
    public function priceCurrency($priceCurrency)
344
    {
345
        return $this->setProperty('priceCurrency', $priceCurrency);
346
    }
347
348
    /**
349
     * URL of a reference Web page that unambiguously indicates the item's
350
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
351
     * official website.
352
     *
353
     * @param string|string[] $sameAs
354
     *
355
     * @return static
356
     *
357
     * @see http://schema.org/sameAs
358
     */
359
    public function sameAs($sameAs)
360
    {
361
        return $this->setProperty('sameAs', $sameAs);
362
    }
363
364
    /**
365
     * A CreativeWork or Event about this Thing.
366
     *
367
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
368
     *
369
     * @return static
370
     *
371
     * @see http://schema.org/subjectOf
372
     */
373
    public function subjectOf($subjectOf)
374
    {
375
        return $this->setProperty('subjectOf', $subjectOf);
376
    }
377
378
    /**
379
     * URL of the item.
380
     *
381
     * @param string|string[] $url
382
     *
383
     * @return static
384
     *
385
     * @see http://schema.org/url
386
     */
387
    public function url($url)
388
    {
389
        return $this->setProperty('url', $url);
390
    }
391
392
    /**
393
     * The date when the item becomes valid.
394
     *
395
     * @param \DateTimeInterface|\DateTimeInterface[] $validFrom
396
     *
397
     * @return static
398
     *
399
     * @see http://schema.org/validFrom
400
     */
401
    public function validFrom($validFrom)
402
    {
403
        return $this->setProperty('validFrom', $validFrom);
404
    }
405
406
    /**
407
     * The date after when the item is not valid. For example the end of an
408
     * offer, salary period, or a period of opening hours.
409
     *
410
     * @param \DateTimeInterface|\DateTimeInterface[] $validThrough
411
     *
412
     * @return static
413
     *
414
     * @see http://schema.org/validThrough
415
     */
416
    public function validThrough($validThrough)
417
    {
418
        return $this->setProperty('validThrough', $validThrough);
419
    }
420
421
    /**
422
     * Specifies whether the applicable value-added tax (VAT) is included in the
423
     * price specification or not.
424
     *
425
     * @param bool|bool[] $valueAddedTaxIncluded
426
     *
427
     * @return static
428
     *
429
     * @see http://schema.org/valueAddedTaxIncluded
430
     */
431
    public function valueAddedTaxIncluded($valueAddedTaxIncluded)
432
    {
433
        return $this->setProperty('valueAddedTaxIncluded', $valueAddedTaxIncluded);
434
    }
435
436
}
437