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/DeliveryMethod.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\DeliveryMethodContract;
6
use \Spatie\SchemaOrg\Contracts\EnumerationContract;
7
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
8
use \Spatie\SchemaOrg\Contracts\ThingContract;
9
10
/**
11
 * A delivery method is a standardized procedure for transferring the product or
12
 * service to the destination of fulfillment chosen by the customer. Delivery
13
 * methods are characterized by the means of transportation used, and by the
14
 * organization or group that is the contracting party for the sending
15
 * organization or person.
16
 * 
17
 * Commonly used values:
18
 * 
19
 * * http://purl.org/goodrelations/v1#DeliveryModeDirectDownload
20
 * * http://purl.org/goodrelations/v1#DeliveryModeFreight
21
 * * http://purl.org/goodrelations/v1#DeliveryModeMail
22
 * * http://purl.org/goodrelations/v1#DeliveryModeOwnFleet
23
 * * http://purl.org/goodrelations/v1#DeliveryModePickUp
24
 * * http://purl.org/goodrelations/v1#DHL
25
 * * http://purl.org/goodrelations/v1#FederalExpress
26
 * * http://purl.org/goodrelations/v1#UPS
27
 *
28
 * @see http://schema.org/DeliveryMethod
29
 *
30
 */
31 View Code Duplication
class DeliveryMethod extends BaseType implements DeliveryMethodContract, EnumerationContract, IntangibleContract, 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...
32
{
33
    /**
34
     * A DeliveryMethod in which an item is collected on site, e.g. in a store
35
     * or at a box office.
36
     *
37
     * @see http://schema.org/OnSitePickup
38
     */
39
     const OnSitePickup = 'http://schema.org/OnSitePickup';
40
41
    /**
42
     * An additional type for the item, typically used for adding more specific
43
     * types from external vocabularies in microdata syntax. This is a
44
     * relationship between something and a class that the thing is in. In RDFa
45
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
46
     * attribute - for multiple types. Schema.org tools may have only weaker
47
     * understanding of extra types, in particular those defined externally.
48
     *
49
     * @param string|string[] $additionalType
50
     *
51
     * @return static
52
     *
53
     * @see http://schema.org/additionalType
54
     */
55
    public function additionalType($additionalType)
56
    {
57
        return $this->setProperty('additionalType', $additionalType);
58
    }
59
60
    /**
61
     * An alias for the item.
62
     *
63
     * @param string|string[] $alternateName
64
     *
65
     * @return static
66
     *
67
     * @see http://schema.org/alternateName
68
     */
69
    public function alternateName($alternateName)
70
    {
71
        return $this->setProperty('alternateName', $alternateName);
72
    }
73
74
    /**
75
     * A description of the item.
76
     *
77
     * @param string|string[] $description
78
     *
79
     * @return static
80
     *
81
     * @see http://schema.org/description
82
     */
83
    public function description($description)
84
    {
85
        return $this->setProperty('description', $description);
86
    }
87
88
    /**
89
     * A sub property of description. A short description of the item used to
90
     * disambiguate from other, similar items. Information from other properties
91
     * (in particular, name) may be necessary for the description to be useful
92
     * for disambiguation.
93
     *
94
     * @param string|string[] $disambiguatingDescription
95
     *
96
     * @return static
97
     *
98
     * @see http://schema.org/disambiguatingDescription
99
     */
100
    public function disambiguatingDescription($disambiguatingDescription)
101
    {
102
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
103
    }
104
105
    /**
106
     * The identifier property represents any kind of identifier for any kind of
107
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
108
     * dedicated properties for representing many of these, either as textual
109
     * strings or as URL (URI) links. See [background
110
     * notes](/docs/datamodel.html#identifierBg) for more details.
111
     *
112
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
113
     *
114
     * @return static
115
     *
116
     * @see http://schema.org/identifier
117
     */
118
    public function identifier($identifier)
119
    {
120
        return $this->setProperty('identifier', $identifier);
121
    }
122
123
    /**
124
     * An image of the item. This can be a [[URL]] or a fully described
125
     * [[ImageObject]].
126
     *
127
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
128
     *
129
     * @return static
130
     *
131
     * @see http://schema.org/image
132
     */
133
    public function image($image)
134
    {
135
        return $this->setProperty('image', $image);
136
    }
137
138
    /**
139
     * Indicates a page (or other CreativeWork) for which this thing is the main
140
     * entity being described. See [background
141
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
142
     *
143
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
144
     *
145
     * @return static
146
     *
147
     * @see http://schema.org/mainEntityOfPage
148
     */
149
    public function mainEntityOfPage($mainEntityOfPage)
150
    {
151
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
152
    }
153
154
    /**
155
     * The name of the item.
156
     *
157
     * @param string|string[] $name
158
     *
159
     * @return static
160
     *
161
     * @see http://schema.org/name
162
     */
163
    public function name($name)
164
    {
165
        return $this->setProperty('name', $name);
166
    }
167
168
    /**
169
     * Indicates a potential Action, which describes an idealized action in
170
     * which this thing would play an 'object' role.
171
     *
172
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
173
     *
174
     * @return static
175
     *
176
     * @see http://schema.org/potentialAction
177
     */
178
    public function potentialAction($potentialAction)
179
    {
180
        return $this->setProperty('potentialAction', $potentialAction);
181
    }
182
183
    /**
184
     * URL of a reference Web page that unambiguously indicates the item's
185
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
186
     * official website.
187
     *
188
     * @param string|string[] $sameAs
189
     *
190
     * @return static
191
     *
192
     * @see http://schema.org/sameAs
193
     */
194
    public function sameAs($sameAs)
195
    {
196
        return $this->setProperty('sameAs', $sameAs);
197
    }
198
199
    /**
200
     * A CreativeWork or Event about this Thing.
201
     *
202
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
203
     *
204
     * @return static
205
     *
206
     * @see http://schema.org/subjectOf
207
     */
208
    public function subjectOf($subjectOf)
209
    {
210
        return $this->setProperty('subjectOf', $subjectOf);
211
    }
212
213
    /**
214
     * URL of the item.
215
     *
216
     * @param string|string[] $url
217
     *
218
     * @return static
219
     *
220
     * @see http://schema.org/url
221
     */
222
    public function url($url)
223
    {
224
        return $this->setProperty('url', $url);
225
    }
226
227
}
228