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/InvestmentOrDeposit.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\InvestmentOrDepositContract;
6
use \Spatie\SchemaOrg\Contracts\FinancialProductContract;
7
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
8
use \Spatie\SchemaOrg\Contracts\ServiceContract;
9
use \Spatie\SchemaOrg\Contracts\ThingContract;
10
11
/**
12
 * A type of financial product that typically requires the client to transfer
13
 * funds to a financial service in return for potential beneficial financial
14
 * return.
15
 *
16
 * @see http://schema.org/InvestmentOrDeposit
17
 *
18
 */
19 View Code Duplication
class InvestmentOrDeposit extends BaseType implements InvestmentOrDepositContract, FinancialProductContract, IntangibleContract, ServiceContract, 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...
20
{
21
    /**
22
     * An additional type for the item, typically used for adding more specific
23
     * types from external vocabularies in microdata syntax. This is a
24
     * relationship between something and a class that the thing is in. In RDFa
25
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
26
     * attribute - for multiple types. Schema.org tools may have only weaker
27
     * understanding of extra types, in particular those defined externally.
28
     *
29
     * @param string|string[] $additionalType
30
     *
31
     * @return static
32
     *
33
     * @see http://schema.org/additionalType
34
     */
35
    public function additionalType($additionalType)
36
    {
37
        return $this->setProperty('additionalType', $additionalType);
38
    }
39
40
    /**
41
     * The overall rating, based on a collection of reviews or ratings, of the
42
     * item.
43
     *
44
     * @param \Spatie\SchemaOrg\Contracts\AggregateRatingContract|\Spatie\SchemaOrg\Contracts\AggregateRatingContract[] $aggregateRating
45
     *
46
     * @return static
47
     *
48
     * @see http://schema.org/aggregateRating
49
     */
50
    public function aggregateRating($aggregateRating)
51
    {
52
        return $this->setProperty('aggregateRating', $aggregateRating);
53
    }
54
55
    /**
56
     * An alias for the item.
57
     *
58
     * @param string|string[] $alternateName
59
     *
60
     * @return static
61
     *
62
     * @see http://schema.org/alternateName
63
     */
64
    public function alternateName($alternateName)
65
    {
66
        return $this->setProperty('alternateName', $alternateName);
67
    }
68
69
    /**
70
     * The amount of money.
71
     *
72
     * @param \Spatie\SchemaOrg\Contracts\MonetaryAmountContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountContract[]|float|float[]|int|int[] $amount
73
     *
74
     * @return static
75
     *
76
     * @see http://schema.org/amount
77
     */
78
    public function amount($amount)
79
    {
80
        return $this->setProperty('amount', $amount);
81
    }
82
83
    /**
84
     * The annual rate that is charged for borrowing (or made by investing),
85
     * expressed as a single percentage number that represents the actual yearly
86
     * cost of funds over the term of a loan. This includes any fees or
87
     * additional costs associated with the transaction.
88
     *
89
     * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $annualPercentageRate
90
     *
91
     * @return static
92
     *
93
     * @see http://schema.org/annualPercentageRate
94
     */
95
    public function annualPercentageRate($annualPercentageRate)
96
    {
97
        return $this->setProperty('annualPercentageRate', $annualPercentageRate);
98
    }
99
100
    /**
101
     * The geographic area where a service or offered item is provided.
102
     *
103
     * @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
104
     *
105
     * @return static
106
     *
107
     * @see http://schema.org/areaServed
108
     */
109
    public function areaServed($areaServed)
110
    {
111
        return $this->setProperty('areaServed', $areaServed);
112
    }
113
114
    /**
115
     * An intended audience, i.e. a group for whom something was created.
116
     *
117
     * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $audience
118
     *
119
     * @return static
120
     *
121
     * @see http://schema.org/audience
122
     */
123
    public function audience($audience)
124
    {
125
        return $this->setProperty('audience', $audience);
126
    }
127
128
    /**
129
     * A means of accessing the service (e.g. a phone bank, a web site, a
130
     * location, etc.).
131
     *
132
     * @param \Spatie\SchemaOrg\Contracts\ServiceChannelContract|\Spatie\SchemaOrg\Contracts\ServiceChannelContract[] $availableChannel
133
     *
134
     * @return static
135
     *
136
     * @see http://schema.org/availableChannel
137
     */
138
    public function availableChannel($availableChannel)
139
    {
140
        return $this->setProperty('availableChannel', $availableChannel);
141
    }
142
143
    /**
144
     * An award won by or for this item.
145
     *
146
     * @param string|string[] $award
147
     *
148
     * @return static
149
     *
150
     * @see http://schema.org/award
151
     */
152
    public function award($award)
153
    {
154
        return $this->setProperty('award', $award);
155
    }
156
157
    /**
158
     * The brand(s) associated with a product or service, or the brand(s)
159
     * maintained by an organization or business person.
160
     *
161
     * @param \Spatie\SchemaOrg\Contracts\BrandContract|\Spatie\SchemaOrg\Contracts\BrandContract[]|\Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $brand
162
     *
163
     * @return static
164
     *
165
     * @see http://schema.org/brand
166
     */
167
    public function brand($brand)
168
    {
169
        return $this->setProperty('brand', $brand);
170
    }
171
172
    /**
173
     * An entity that arranges for an exchange between a buyer and a seller.  In
174
     * most cases a broker never acquires or releases ownership of a product or
175
     * service involved in an exchange.  If it is not clear whether an entity is
176
     * a broker, seller, or buyer, the latter two terms are preferred.
177
     *
178
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $broker
179
     *
180
     * @return static
181
     *
182
     * @see http://schema.org/broker
183
     */
184
    public function broker($broker)
185
    {
186
        return $this->setProperty('broker', $broker);
187
    }
188
189
    /**
190
     * A category for the item. Greater signs or slashes can be used to
191
     * informally indicate a category hierarchy.
192
     *
193
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[]|string|string[] $category
194
     *
195
     * @return static
196
     *
197
     * @see http://schema.org/category
198
     */
199
    public function category($category)
200
    {
201
        return $this->setProperty('category', $category);
202
    }
203
204
    /**
205
     * A description of the item.
206
     *
207
     * @param string|string[] $description
208
     *
209
     * @return static
210
     *
211
     * @see http://schema.org/description
212
     */
213
    public function description($description)
214
    {
215
        return $this->setProperty('description', $description);
216
    }
217
218
    /**
219
     * A sub property of description. A short description of the item used to
220
     * disambiguate from other, similar items. Information from other properties
221
     * (in particular, name) may be necessary for the description to be useful
222
     * for disambiguation.
223
     *
224
     * @param string|string[] $disambiguatingDescription
225
     *
226
     * @return static
227
     *
228
     * @see http://schema.org/disambiguatingDescription
229
     */
230
    public function disambiguatingDescription($disambiguatingDescription)
231
    {
232
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
233
    }
234
235
    /**
236
     * Description of fees, commissions, and other terms applied either to a
237
     * class of financial product, or by a financial service organization.
238
     *
239
     * @param string|string[] $feesAndCommissionsSpecification
240
     *
241
     * @return static
242
     *
243
     * @see http://schema.org/feesAndCommissionsSpecification
244
     */
245
    public function feesAndCommissionsSpecification($feesAndCommissionsSpecification)
246
    {
247
        return $this->setProperty('feesAndCommissionsSpecification', $feesAndCommissionsSpecification);
248
    }
249
250
    /**
251
     * Indicates an OfferCatalog listing for this Organization, Person, or
252
     * Service.
253
     *
254
     * @param \Spatie\SchemaOrg\Contracts\OfferCatalogContract|\Spatie\SchemaOrg\Contracts\OfferCatalogContract[] $hasOfferCatalog
255
     *
256
     * @return static
257
     *
258
     * @see http://schema.org/hasOfferCatalog
259
     */
260
    public function hasOfferCatalog($hasOfferCatalog)
261
    {
262
        return $this->setProperty('hasOfferCatalog', $hasOfferCatalog);
263
    }
264
265
    /**
266
     * The hours during which this service or contact is available.
267
     *
268
     * @param \Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract|\Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract[] $hoursAvailable
269
     *
270
     * @return static
271
     *
272
     * @see http://schema.org/hoursAvailable
273
     */
274
    public function hoursAvailable($hoursAvailable)
275
    {
276
        return $this->setProperty('hoursAvailable', $hoursAvailable);
277
    }
278
279
    /**
280
     * The identifier property represents any kind of identifier for any kind of
281
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
282
     * dedicated properties for representing many of these, either as textual
283
     * strings or as URL (URI) links. See [background
284
     * notes](/docs/datamodel.html#identifierBg) for more details.
285
     *
286
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
287
     *
288
     * @return static
289
     *
290
     * @see http://schema.org/identifier
291
     */
292
    public function identifier($identifier)
293
    {
294
        return $this->setProperty('identifier', $identifier);
295
    }
296
297
    /**
298
     * An image of the item. This can be a [[URL]] or a fully described
299
     * [[ImageObject]].
300
     *
301
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
302
     *
303
     * @return static
304
     *
305
     * @see http://schema.org/image
306
     */
307
    public function image($image)
308
    {
309
        return $this->setProperty('image', $image);
310
    }
311
312
    /**
313
     * The interest rate, charged or paid, applicable to the financial product.
314
     * Note: This is different from the calculated annualPercentageRate.
315
     *
316
     * @param \Spatie\SchemaOrg\Contracts\QuantitativeValueContract|\Spatie\SchemaOrg\Contracts\QuantitativeValueContract[]|float|float[]|int|int[] $interestRate
317
     *
318
     * @return static
319
     *
320
     * @see http://schema.org/interestRate
321
     */
322
    public function interestRate($interestRate)
323
    {
324
        return $this->setProperty('interestRate', $interestRate);
325
    }
326
327
    /**
328
     * A pointer to another, somehow related product (or multiple products).
329
     *
330
     * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isRelatedTo
331
     *
332
     * @return static
333
     *
334
     * @see http://schema.org/isRelatedTo
335
     */
336
    public function isRelatedTo($isRelatedTo)
337
    {
338
        return $this->setProperty('isRelatedTo', $isRelatedTo);
339
    }
340
341
    /**
342
     * A pointer to another, functionally similar product (or multiple
343
     * products).
344
     *
345
     * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|\Spatie\SchemaOrg\Contracts\ServiceContract|\Spatie\SchemaOrg\Contracts\ServiceContract[] $isSimilarTo
346
     *
347
     * @return static
348
     *
349
     * @see http://schema.org/isSimilarTo
350
     */
351
    public function isSimilarTo($isSimilarTo)
352
    {
353
        return $this->setProperty('isSimilarTo', $isSimilarTo);
354
    }
355
356
    /**
357
     * An associated logo.
358
     *
359
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $logo
360
     *
361
     * @return static
362
     *
363
     * @see http://schema.org/logo
364
     */
365
    public function logo($logo)
366
    {
367
        return $this->setProperty('logo', $logo);
368
    }
369
370
    /**
371
     * Indicates a page (or other CreativeWork) for which this thing is the main
372
     * entity being described. See [background
373
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
374
     *
375
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
376
     *
377
     * @return static
378
     *
379
     * @see http://schema.org/mainEntityOfPage
380
     */
381
    public function mainEntityOfPage($mainEntityOfPage)
382
    {
383
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
384
    }
385
386
    /**
387
     * The name of the item.
388
     *
389
     * @param string|string[] $name
390
     *
391
     * @return static
392
     *
393
     * @see http://schema.org/name
394
     */
395
    public function name($name)
396
    {
397
        return $this->setProperty('name', $name);
398
    }
399
400
    /**
401
     * An offer to provide this item&#x2014;for example, an offer to sell a
402
     * product, rent the DVD of a movie, perform a service, or give away tickets
403
     * to an event. Use [[businessFunction]] to indicate the kind of transaction
404
     * offered, i.e. sell, lease, etc. This property can also be used to
405
     * describe a [[Demand]]. While this property is listed as expected on a
406
     * number of common types, it can be used in others. In that case, using a
407
     * second type, such as Product or a subtype of Product, can clarify the
408
     * nature of the offer.
409
     *
410
     * @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers
411
     *
412
     * @return static
413
     *
414
     * @see http://schema.org/offers
415
     */
416
    public function offers($offers)
417
    {
418
        return $this->setProperty('offers', $offers);
419
    }
420
421
    /**
422
     * Indicates a potential Action, which describes an idealized action in
423
     * which this thing would play an 'object' role.
424
     *
425
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
426
     *
427
     * @return static
428
     *
429
     * @see http://schema.org/potentialAction
430
     */
431
    public function potentialAction($potentialAction)
432
    {
433
        return $this->setProperty('potentialAction', $potentialAction);
434
    }
435
436
    /**
437
     * The tangible thing generated by the service, e.g. a passport, permit,
438
     * etc.
439
     *
440
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $produces
441
     *
442
     * @return static
443
     *
444
     * @see http://schema.org/produces
445
     */
446
    public function produces($produces)
447
    {
448
        return $this->setProperty('produces', $produces);
449
    }
450
451
    /**
452
     * The service provider, service operator, or service performer; the goods
453
     * producer. Another party (a seller) may offer those services or goods on
454
     * behalf of the provider. A provider may also serve as the seller.
455
     *
456
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider
457
     *
458
     * @return static
459
     *
460
     * @see http://schema.org/provider
461
     */
462
    public function provider($provider)
463
    {
464
        return $this->setProperty('provider', $provider);
465
    }
466
467
    /**
468
     * Indicates the mobility of a provided service (e.g. 'static', 'dynamic').
469
     *
470
     * @param string|string[] $providerMobility
471
     *
472
     * @return static
473
     *
474
     * @see http://schema.org/providerMobility
475
     */
476
    public function providerMobility($providerMobility)
477
    {
478
        return $this->setProperty('providerMobility', $providerMobility);
479
    }
480
481
    /**
482
     * A review of the item.
483
     *
484
     * @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $review
485
     *
486
     * @return static
487
     *
488
     * @see http://schema.org/review
489
     */
490
    public function review($review)
491
    {
492
        return $this->setProperty('review', $review);
493
    }
494
495
    /**
496
     * URL of a reference Web page that unambiguously indicates the item's
497
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
498
     * official website.
499
     *
500
     * @param string|string[] $sameAs
501
     *
502
     * @return static
503
     *
504
     * @see http://schema.org/sameAs
505
     */
506
    public function sameAs($sameAs)
507
    {
508
        return $this->setProperty('sameAs', $sameAs);
509
    }
510
511
    /**
512
     * The geographic area where the service is provided.
513
     *
514
     * @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[] $serviceArea
515
     *
516
     * @return static
517
     *
518
     * @see http://schema.org/serviceArea
519
     */
520
    public function serviceArea($serviceArea)
521
    {
522
        return $this->setProperty('serviceArea', $serviceArea);
523
    }
524
525
    /**
526
     * The audience eligible for this service.
527
     *
528
     * @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $serviceAudience
529
     *
530
     * @return static
531
     *
532
     * @see http://schema.org/serviceAudience
533
     */
534
    public function serviceAudience($serviceAudience)
535
    {
536
        return $this->setProperty('serviceAudience', $serviceAudience);
537
    }
538
539
    /**
540
     * The tangible thing generated by the service, e.g. a passport, permit,
541
     * etc.
542
     *
543
     * @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $serviceOutput
544
     *
545
     * @return static
546
     *
547
     * @see http://schema.org/serviceOutput
548
     */
549
    public function serviceOutput($serviceOutput)
550
    {
551
        return $this->setProperty('serviceOutput', $serviceOutput);
552
    }
553
554
    /**
555
     * The type of service being offered, e.g. veterans' benefits, emergency
556
     * relief, etc.
557
     *
558
     * @param string|string[] $serviceType
559
     *
560
     * @return static
561
     *
562
     * @see http://schema.org/serviceType
563
     */
564
    public function serviceType($serviceType)
565
    {
566
        return $this->setProperty('serviceType', $serviceType);
567
    }
568
569
    /**
570
     * A slogan or motto associated with the item.
571
     *
572
     * @param string|string[] $slogan
573
     *
574
     * @return static
575
     *
576
     * @see http://schema.org/slogan
577
     */
578
    public function slogan($slogan)
579
    {
580
        return $this->setProperty('slogan', $slogan);
581
    }
582
583
    /**
584
     * A CreativeWork or Event about this Thing.
585
     *
586
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
587
     *
588
     * @return static
589
     *
590
     * @see http://schema.org/subjectOf
591
     */
592
    public function subjectOf($subjectOf)
593
    {
594
        return $this->setProperty('subjectOf', $subjectOf);
595
    }
596
597
    /**
598
     * URL of the item.
599
     *
600
     * @param string|string[] $url
601
     *
602
     * @return static
603
     *
604
     * @see http://schema.org/url
605
     */
606
    public function url($url)
607
    {
608
        return $this->setProperty('url', $url);
609
    }
610
611
}
612