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/PaymentChargeSpecification.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\PaymentChargeSpecificationContract;
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 costs of settling the payment using a particular payment method.
13
 *
14
 * @see http://schema.org/PaymentChargeSpecification
15
 *
16
 */
17 View Code Duplication
class PaymentChargeSpecification extends BaseType implements PaymentChargeSpecificationContract, 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 payment method(s) to which the payment charge specification applies.
69
     *
70
     * @param \Spatie\SchemaOrg\Contracts\PaymentMethodContract|\Spatie\SchemaOrg\Contracts\PaymentMethodContract[] $appliesToPaymentMethod
71
     *
72
     * @return static
73
     *
74
     * @see http://schema.org/appliesToPaymentMethod
75
     */
76
    public function appliesToPaymentMethod($appliesToPaymentMethod)
77
    {
78
        return $this->setProperty('appliesToPaymentMethod', $appliesToPaymentMethod);
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 transaction volume, in a monetary unit, for which the offer or price
130
     * specification is valid, e.g. for indicating a minimal purchasing volume,
131
     * to express free shipping above a certain order volume, or to limit the
132
     * acceptance of credit cards to purchases to a certain minimal amount.
133
     *
134
     * @param \Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[] $eligibleTransactionVolume
135
     *
136
     * @return static
137
     *
138
     * @see http://schema.org/eligibleTransactionVolume
139
     */
140
    public function eligibleTransactionVolume($eligibleTransactionVolume)
141
    {
142
        return $this->setProperty('eligibleTransactionVolume', $eligibleTransactionVolume);
143
    }
144
145
    /**
146
     * The identifier property represents any kind of identifier for any kind of
147
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
148
     * dedicated properties for representing many of these, either as textual
149
     * strings or as URL (URI) links. See [background
150
     * notes](/docs/datamodel.html#identifierBg) for more details.
151
     *
152
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
153
     *
154
     * @return static
155
     *
156
     * @see http://schema.org/identifier
157
     */
158
    public function identifier($identifier)
159
    {
160
        return $this->setProperty('identifier', $identifier);
161
    }
162
163
    /**
164
     * An image of the item. This can be a [[URL]] or a fully described
165
     * [[ImageObject]].
166
     *
167
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
168
     *
169
     * @return static
170
     *
171
     * @see http://schema.org/image
172
     */
173
    public function image($image)
174
    {
175
        return $this->setProperty('image', $image);
176
    }
177
178
    /**
179
     * Indicates a page (or other CreativeWork) for which this thing is the main
180
     * entity being described. See [background
181
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
182
     *
183
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
184
     *
185
     * @return static
186
     *
187
     * @see http://schema.org/mainEntityOfPage
188
     */
189
    public function mainEntityOfPage($mainEntityOfPage)
190
    {
191
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
192
    }
193
194
    /**
195
     * The highest price if the price is a range.
196
     *
197
     * @param float|float[]|int|int[] $maxPrice
198
     *
199
     * @return static
200
     *
201
     * @see http://schema.org/maxPrice
202
     */
203
    public function maxPrice($maxPrice)
204
    {
205
        return $this->setProperty('maxPrice', $maxPrice);
206
    }
207
208
    /**
209
     * The lowest price if the price is a range.
210
     *
211
     * @param float|float[]|int|int[] $minPrice
212
     *
213
     * @return static
214
     *
215
     * @see http://schema.org/minPrice
216
     */
217
    public function minPrice($minPrice)
218
    {
219
        return $this->setProperty('minPrice', $minPrice);
220
    }
221
222
    /**
223
     * The name of the item.
224
     *
225
     * @param string|string[] $name
226
     *
227
     * @return static
228
     *
229
     * @see http://schema.org/name
230
     */
231
    public function name($name)
232
    {
233
        return $this->setProperty('name', $name);
234
    }
235
236
    /**
237
     * Indicates a potential Action, which describes an idealized action in
238
     * which this thing would play an 'object' role.
239
     *
240
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
241
     *
242
     * @return static
243
     *
244
     * @see http://schema.org/potentialAction
245
     */
246
    public function potentialAction($potentialAction)
247
    {
248
        return $this->setProperty('potentialAction', $potentialAction);
249
    }
250
251
    /**
252
     * The offer price of a product, or of a price component when attached to
253
     * PriceSpecification and its subtypes.
254
     * 
255
     * Usage guidelines:
256
     * 
257
     * * Use the [[priceCurrency]] property (with standard formats: [ISO 4217
258
     * currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD";
259
     * [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies)
260
     * for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
261
     * Tradings
262
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
263
     * (LETS) and other currency types e.g. "Ithaca HOUR") instead of including
264
     * [ambiguous
265
     * symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign)
266
     * such as '$' in the value.
267
     * * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
268
     * decimal point. Avoid using these symbols as a readability separator.
269
     * * Note that both
270
     * [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute)
271
     * and Microdata syntax allow the use of a "content=" attribute for
272
     * publishing simple machine-readable values alongside more human-friendly
273
     * formatting.
274
     * * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT
275
     * NINE' (U+0039)) rather than superficially similiar Unicode symbols.
276
     *
277
     * @param float|float[]|int|int[]|string|string[] $price
278
     *
279
     * @return static
280
     *
281
     * @see http://schema.org/price
282
     */
283
    public function price($price)
284
    {
285
        return $this->setProperty('price', $price);
286
    }
287
288
    /**
289
     * The currency of the price, or a price component when attached to
290
     * [[PriceSpecification]] and its subtypes.
291
     * 
292
     * Use standard formats: [ISO 4217 currency
293
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
294
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
295
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
296
     * Tradings
297
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
298
     * (LETS) and other currency types e.g. "Ithaca HOUR".
299
     *
300
     * @param string|string[] $priceCurrency
301
     *
302
     * @return static
303
     *
304
     * @see http://schema.org/priceCurrency
305
     */
306
    public function priceCurrency($priceCurrency)
307
    {
308
        return $this->setProperty('priceCurrency', $priceCurrency);
309
    }
310
311
    /**
312
     * URL of a reference Web page that unambiguously indicates the item's
313
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
314
     * official website.
315
     *
316
     * @param string|string[] $sameAs
317
     *
318
     * @return static
319
     *
320
     * @see http://schema.org/sameAs
321
     */
322
    public function sameAs($sameAs)
323
    {
324
        return $this->setProperty('sameAs', $sameAs);
325
    }
326
327
    /**
328
     * A CreativeWork or Event about this Thing.
329
     *
330
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
331
     *
332
     * @return static
333
     *
334
     * @see http://schema.org/subjectOf
335
     */
336
    public function subjectOf($subjectOf)
337
    {
338
        return $this->setProperty('subjectOf', $subjectOf);
339
    }
340
341
    /**
342
     * URL of the item.
343
     *
344
     * @param string|string[] $url
345
     *
346
     * @return static
347
     *
348
     * @see http://schema.org/url
349
     */
350
    public function url($url)
351
    {
352
        return $this->setProperty('url', $url);
353
    }
354
355
    /**
356
     * The date when the item becomes valid.
357
     *
358
     * @param \DateTimeInterface|\DateTimeInterface[] $validFrom
359
     *
360
     * @return static
361
     *
362
     * @see http://schema.org/validFrom
363
     */
364
    public function validFrom($validFrom)
365
    {
366
        return $this->setProperty('validFrom', $validFrom);
367
    }
368
369
    /**
370
     * The date after when the item is not valid. For example the end of an
371
     * offer, salary period, or a period of opening hours.
372
     *
373
     * @param \DateTimeInterface|\DateTimeInterface[] $validThrough
374
     *
375
     * @return static
376
     *
377
     * @see http://schema.org/validThrough
378
     */
379
    public function validThrough($validThrough)
380
    {
381
        return $this->setProperty('validThrough', $validThrough);
382
    }
383
384
    /**
385
     * Specifies whether the applicable value-added tax (VAT) is included in the
386
     * price specification or not.
387
     *
388
     * @param bool|bool[] $valueAddedTaxIncluded
389
     *
390
     * @return static
391
     *
392
     * @see http://schema.org/valueAddedTaxIncluded
393
     */
394
    public function valueAddedTaxIncluded($valueAddedTaxIncluded)
395
    {
396
        return $this->setProperty('valueAddedTaxIncluded', $valueAddedTaxIncluded);
397
    }
398
399
}
400