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/ProgramMembership.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\ProgramMembershipContract;
6
use \Spatie\SchemaOrg\Contracts\IntangibleContract;
7
use \Spatie\SchemaOrg\Contracts\ThingContract;
8
9
/**
10
 * Used to describe membership in a loyalty programs (e.g. "StarAliance"),
11
 * traveler clubs (e.g. "AAA"), purchase clubs ("Safeway Club"), etc.
12
 *
13
 * @see http://schema.org/ProgramMembership
14
 *
15
 */
16 View Code Duplication
class ProgramMembership extends BaseType implements ProgramMembershipContract, 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...
17
{
18
    /**
19
     * An additional type for the item, typically used for adding more specific
20
     * types from external vocabularies in microdata syntax. This is a
21
     * relationship between something and a class that the thing is in. In RDFa
22
     * syntax, it is better to use the native RDFa syntax - the 'typeof'
23
     * attribute - for multiple types. Schema.org tools may have only weaker
24
     * understanding of extra types, in particular those defined externally.
25
     *
26
     * @param string|string[] $additionalType
27
     *
28
     * @return static
29
     *
30
     * @see http://schema.org/additionalType
31
     */
32
    public function additionalType($additionalType)
33
    {
34
        return $this->setProperty('additionalType', $additionalType);
35
    }
36
37
    /**
38
     * An alias for the item.
39
     *
40
     * @param string|string[] $alternateName
41
     *
42
     * @return static
43
     *
44
     * @see http://schema.org/alternateName
45
     */
46
    public function alternateName($alternateName)
47
    {
48
        return $this->setProperty('alternateName', $alternateName);
49
    }
50
51
    /**
52
     * A description of the item.
53
     *
54
     * @param string|string[] $description
55
     *
56
     * @return static
57
     *
58
     * @see http://schema.org/description
59
     */
60
    public function description($description)
61
    {
62
        return $this->setProperty('description', $description);
63
    }
64
65
    /**
66
     * A sub property of description. A short description of the item used to
67
     * disambiguate from other, similar items. Information from other properties
68
     * (in particular, name) may be necessary for the description to be useful
69
     * for disambiguation.
70
     *
71
     * @param string|string[] $disambiguatingDescription
72
     *
73
     * @return static
74
     *
75
     * @see http://schema.org/disambiguatingDescription
76
     */
77
    public function disambiguatingDescription($disambiguatingDescription)
78
    {
79
        return $this->setProperty('disambiguatingDescription', $disambiguatingDescription);
80
    }
81
82
    /**
83
     * The organization (airline, travelers' club, etc.) the membership is made
84
     * with.
85
     *
86
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $hostingOrganization
87
     *
88
     * @return static
89
     *
90
     * @see http://schema.org/hostingOrganization
91
     */
92
    public function hostingOrganization($hostingOrganization)
93
    {
94
        return $this->setProperty('hostingOrganization', $hostingOrganization);
95
    }
96
97
    /**
98
     * The identifier property represents any kind of identifier for any kind of
99
     * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides
100
     * dedicated properties for representing many of these, either as textual
101
     * strings or as URL (URI) links. See [background
102
     * notes](/docs/datamodel.html#identifierBg) for more details.
103
     *
104
     * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier
105
     *
106
     * @return static
107
     *
108
     * @see http://schema.org/identifier
109
     */
110
    public function identifier($identifier)
111
    {
112
        return $this->setProperty('identifier', $identifier);
113
    }
114
115
    /**
116
     * An image of the item. This can be a [[URL]] or a fully described
117
     * [[ImageObject]].
118
     *
119
     * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image
120
     *
121
     * @return static
122
     *
123
     * @see http://schema.org/image
124
     */
125
    public function image($image)
126
    {
127
        return $this->setProperty('image', $image);
128
    }
129
130
    /**
131
     * Indicates a page (or other CreativeWork) for which this thing is the main
132
     * entity being described. See [background
133
     * notes](/docs/datamodel.html#mainEntityBackground) for details.
134
     *
135
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage
136
     *
137
     * @return static
138
     *
139
     * @see http://schema.org/mainEntityOfPage
140
     */
141
    public function mainEntityOfPage($mainEntityOfPage)
142
    {
143
        return $this->setProperty('mainEntityOfPage', $mainEntityOfPage);
144
    }
145
146
    /**
147
     * A member of an Organization or a ProgramMembership. Organizations can be
148
     * members of organizations; ProgramMembership is typically for individuals.
149
     *
150
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $member
151
     *
152
     * @return static
153
     *
154
     * @see http://schema.org/member
155
     */
156
    public function member($member)
157
    {
158
        return $this->setProperty('member', $member);
159
    }
160
161
    /**
162
     * A member of this organization.
163
     *
164
     * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $members
165
     *
166
     * @return static
167
     *
168
     * @see http://schema.org/members
169
     */
170
    public function members($members)
171
    {
172
        return $this->setProperty('members', $members);
173
    }
174
175
    /**
176
     * A unique identifier for the membership.
177
     *
178
     * @param string|string[] $membershipNumber
179
     *
180
     * @return static
181
     *
182
     * @see http://schema.org/membershipNumber
183
     */
184
    public function membershipNumber($membershipNumber)
185
    {
186
        return $this->setProperty('membershipNumber', $membershipNumber);
187
    }
188
189
    /**
190
     * The name of the item.
191
     *
192
     * @param string|string[] $name
193
     *
194
     * @return static
195
     *
196
     * @see http://schema.org/name
197
     */
198
    public function name($name)
199
    {
200
        return $this->setProperty('name', $name);
201
    }
202
203
    /**
204
     * Indicates a potential Action, which describes an idealized action in
205
     * which this thing would play an 'object' role.
206
     *
207
     * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction
208
     *
209
     * @return static
210
     *
211
     * @see http://schema.org/potentialAction
212
     */
213
    public function potentialAction($potentialAction)
214
    {
215
        return $this->setProperty('potentialAction', $potentialAction);
216
    }
217
218
    /**
219
     * The program providing the membership.
220
     *
221
     * @param string|string[] $programName
222
     *
223
     * @return static
224
     *
225
     * @see http://schema.org/programName
226
     */
227
    public function programName($programName)
228
    {
229
        return $this->setProperty('programName', $programName);
230
    }
231
232
    /**
233
     * URL of a reference Web page that unambiguously indicates the item's
234
     * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or
235
     * official website.
236
     *
237
     * @param string|string[] $sameAs
238
     *
239
     * @return static
240
     *
241
     * @see http://schema.org/sameAs
242
     */
243
    public function sameAs($sameAs)
244
    {
245
        return $this->setProperty('sameAs', $sameAs);
246
    }
247
248
    /**
249
     * A CreativeWork or Event about this Thing.
250
     *
251
     * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf
252
     *
253
     * @return static
254
     *
255
     * @see http://schema.org/subjectOf
256
     */
257
    public function subjectOf($subjectOf)
258
    {
259
        return $this->setProperty('subjectOf', $subjectOf);
260
    }
261
262
    /**
263
     * URL of the item.
264
     *
265
     * @param string|string[] $url
266
     *
267
     * @return static
268
     *
269
     * @see http://schema.org/url
270
     */
271
    public function url($url)
272
    {
273
        return $this->setProperty('url', $url);
274
    }
275
276
}
277