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/DatedMoneySpecification.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\DatedMoneySpecificationContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\StructuredValueContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A DatedMoneySpecification represents monetary values with optional start and
12
 * end dates. For example, this could represent an employee's salary over a
13
 * specific period of time. __Note:__ This type has been superseded by
14
 * [[MonetaryAmount]] use of that type is recommended
15
 *
16
 * @see http://schema.org/DatedMoneySpecification
17
 *
18
 */
19 View Code Duplication
class DatedMoneySpecification extends BaseType implements DatedMoneySpecificationContract, IntangibleContract, 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...
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
     * An alias for the item.
42
     *
43
     * @param string|string[] $alternateName
44
     *
45
     * @return static
46
     *
47
     * @see http://schema.org/alternateName
48
     */
49
    public function alternateName($alternateName)
50
    {
51
        return $this->setProperty('alternateName', $alternateName);
52
    }
53
54
    /**
55
     * The amount of money.
56
     *
57
     * @param \Spatie\SchemaOrg\Contracts\MonetaryAmountContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountContract[]|float|float[]|int|int[] $amount
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/amount
62
     */
63
    public function amount($amount)
64
    {
65
        return $this->setProperty('amount', $amount);
66
    }
67
68
    /**
69
     * The currency in which the monetary amount is expressed.
70
     * 
71
     * Use standard formats: [ISO 4217 currency
72
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
73
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
74
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
75
     * Tradings
76
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
77
     * (LETS) and other currency types e.g. "Ithaca HOUR".
78
     *
79
     * @param string|string[] $currency
80
     *
81
     * @return static
82
     *
83
     * @see http://schema.org/currency
84
     */
85
    public function currency($currency)
86
    {
87
        return $this->setProperty('currency', $currency);
88
    }
89
90
    /**
91
     * A description of the item.
92
     *
93
     * @param string|string[] $description
94
     *
95
     * @return static
96
     *
97
     * @see http://schema.org/description
98
     */
99
    public function description($description)
100
    {
101
        return $this->setProperty('description', $description);
102
    }
103
104
    /**
105
     * A sub property of description. A short description of the item used to
106
     * disambiguate from other, similar items. Information from other properties
107
     * (in particular, name) may be necessary for the description to be useful
108
     * for disambiguation.
109
     *
110
     * @param string|string[] $disambiguatingDescription
111
     *
112
     * @return static
113
     *
114
     * @see http://schema.org/disambiguatingDescription
115
     */
116
    public function disambiguatingDescription($disambiguatingDescription)
117
    {
118
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
119
    }
120
121
    /**
122
     * The identifier property represents any kind of identifier for any kind of
123
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
124
     * dedicated properties for representing many of these, either as textual
125
     * strings or as URL (URI) links. See [background
126
     * notes](/docs/datamodel.html#identifierBg) for more details.
127
     *
128
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
129
     *
130
     * @return static
131
     *
132
     * @see http://schema.org/identifier
133
     */
134
    public function identifier($identifier)
135
    {
136
        return $this->setProperty('identifier', $identifier);
137
    }
138
139
    /**
140
     * An image of the item. This can be a [[URL]] or a fully described
141
     * [[ImageObject]].
142
     *
143
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
144
     *
145
     * @return static
146
     *
147
     * @see http://schema.org/image
148
     */
149
    public function image($image)
150
    {
151
        return $this->setProperty('image', $image);
152
    }
153
154
    /**
155
     * Indicates a page (or other CreativeWork) for which this thing is the main
156
     * entity being described. See [background
157
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
158
     *
159
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
160
     *
161
     * @return static
162
     *
163
     * @see http://schema.org/mainEntityOfPage
164
     */
165
    public function mainEntityOfPage($mainEntityOfPage)
166
    {
167
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
168
    }
169
170
    /**
171
     * The name of the item.
172
     *
173
     * @param string|string[] $name
174
     *
175
     * @return static
176
     *
177
     * @see http://schema.org/name
178
     */
179
    public function name($name)
180
    {
181
        return $this->setProperty('name', $name);
182
    }
183
184
    /**
185
     * Indicates a potential Action, which describes an idealized action in
186
     * which this thing would play an 'object' role.
187
     *
188
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
189
     *
190
     * @return static
191
     *
192
     * @see http://schema.org/potentialAction
193
     */
194
    public function potentialAction($potentialAction)
195
    {
196
        return $this->setProperty('potentialAction', $potentialAction);
197
    }
198
199
    /**
200
     * URL of a reference Web page that unambiguously indicates the item's
201
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
202
     * official website.
203
     *
204
     * @param string|string[] $sameAs
205
     *
206
     * @return static
207
     *
208
     * @see http://schema.org/sameAs
209
     */
210
    public function sameAs($sameAs)
211
    {
212
        return $this->setProperty('sameAs', $sameAs);
213
    }
214
215
    /**
216
     * A CreativeWork or Event about this Thing.
217
     *
218
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
219
     *
220
     * @return static
221
     *
222
     * @see http://schema.org/subjectOf
223
     */
224
    public function subjectOf($subjectOf)
225
    {
226
        return $this->setProperty('subjectOf', $subjectOf);
227
    }
228
229
    /**
230
     * URL of the item.
231
     *
232
     * @param string|string[] $url
233
     *
234
     * @return static
235
     *
236
     * @see http://schema.org/url
237
     */
238
    public function url($url)
239
    {
240
        return $this->setProperty('url', $url);
241
    }
242
243
}
244