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