This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
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\ContactPointContract; |
||
6 | use \Spatie\SchemaOrg\Contracts\IntangibleContract; |
||
7 | use \Spatie\SchemaOrg\Contracts\StructuredValueContract; |
||
8 | use \Spatie\SchemaOrg\Contracts\ThingContract; |
||
9 | |||
10 | /** |
||
11 | * A contact point—for example, a Customer Complaints department. |
||
12 | * |
||
13 | * @see http://schema.org/ContactPoint |
||
14 | * |
||
15 | */ |
||
16 | View Code Duplication | class ContactPoint extends BaseType implements ContactPointContract, IntangibleContract, StructuredValueContract, ThingContract |
|
0 ignored issues
–
show
|
|||
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 | * The geographic area where a service or offered item is provided. |
||
53 | * |
||
54 | * @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 |
||
55 | * |
||
56 | * @return static |
||
57 | * |
||
58 | * @see http://schema.org/areaServed |
||
59 | */ |
||
60 | public function areaServed($areaServed) |
||
61 | { |
||
62 | return $this->setProperty('areaServed', $areaServed); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * A language someone may use with or at the item, service or place. Please |
||
67 | * use one of the language codes from the [IETF BCP 47 |
||
68 | * standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] |
||
69 | * |
||
70 | * @param \Spatie\SchemaOrg\Contracts\LanguageContract|\Spatie\SchemaOrg\Contracts\LanguageContract[]|string|string[] $availableLanguage |
||
71 | * |
||
72 | * @return static |
||
73 | * |
||
74 | * @see http://schema.org/availableLanguage |
||
75 | */ |
||
76 | public function availableLanguage($availableLanguage) |
||
77 | { |
||
78 | return $this->setProperty('availableLanguage', $availableLanguage); |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * An option available on this contact point (e.g. a toll-free number or |
||
83 | * support for hearing-impaired callers). |
||
84 | * |
||
85 | * @param \Spatie\SchemaOrg\Contracts\ContactPointOptionContract|\Spatie\SchemaOrg\Contracts\ContactPointOptionContract[] $contactOption |
||
86 | * |
||
87 | * @return static |
||
88 | * |
||
89 | * @see http://schema.org/contactOption |
||
90 | */ |
||
91 | public function contactOption($contactOption) |
||
92 | { |
||
93 | return $this->setProperty('contactOption', $contactOption); |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * A person or organization can have different contact points, for different |
||
98 | * purposes. For example, a sales contact point, a PR contact point and so |
||
99 | * on. This property is used to specify the kind of contact point. |
||
100 | * |
||
101 | * @param string|string[] $contactType |
||
102 | * |
||
103 | * @return static |
||
104 | * |
||
105 | * @see http://schema.org/contactType |
||
106 | */ |
||
107 | public function contactType($contactType) |
||
108 | { |
||
109 | return $this->setProperty('contactType', $contactType); |
||
110 | } |
||
111 | |||
112 | /** |
||
113 | * A description of the item. |
||
114 | * |
||
115 | * @param string|string[] $description |
||
116 | * |
||
117 | * @return static |
||
118 | * |
||
119 | * @see http://schema.org/description |
||
120 | */ |
||
121 | public function description($description) |
||
122 | { |
||
123 | return $this->setProperty('description', $description); |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * A sub property of description. A short description of the item used to |
||
128 | * disambiguate from other, similar items. Information from other properties |
||
129 | * (in particular, name) may be necessary for the description to be useful |
||
130 | * for disambiguation. |
||
131 | * |
||
132 | * @param string|string[] $disambiguatingDescription |
||
133 | * |
||
134 | * @return static |
||
135 | * |
||
136 | * @see http://schema.org/disambiguatingDescription |
||
137 | */ |
||
138 | public function disambiguatingDescription($disambiguatingDescription) |
||
139 | { |
||
140 | return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * Email address. |
||
145 | * |
||
146 | * @param string|string[] $email |
||
147 | * |
||
148 | * @return static |
||
149 | * |
||
150 | * @see http://schema.org/email |
||
151 | */ |
||
152 | public function email($email) |
||
153 | { |
||
154 | return $this->setProperty('email', $email); |
||
155 | } |
||
156 | |||
157 | /** |
||
158 | * The fax number. |
||
159 | * |
||
160 | * @param string|string[] $faxNumber |
||
161 | * |
||
162 | * @return static |
||
163 | * |
||
164 | * @see http://schema.org/faxNumber |
||
165 | */ |
||
166 | public function faxNumber($faxNumber) |
||
167 | { |
||
168 | return $this->setProperty('faxNumber', $faxNumber); |
||
169 | } |
||
170 | |||
171 | /** |
||
172 | * The hours during which this service or contact is available. |
||
173 | * |
||
174 | * @param \Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract|\Spatie\SchemaOrg\Contracts\OpeningHoursSpecificationContract[] $hoursAvailable |
||
175 | * |
||
176 | * @return static |
||
177 | * |
||
178 | * @see http://schema.org/hoursAvailable |
||
179 | */ |
||
180 | public function hoursAvailable($hoursAvailable) |
||
181 | { |
||
182 | return $this->setProperty('hoursAvailable', $hoursAvailable); |
||
183 | } |
||
184 | |||
185 | /** |
||
186 | * The identifier property represents any kind of identifier for any kind of |
||
187 | * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides |
||
188 | * dedicated properties for representing many of these, either as textual |
||
189 | * strings or as URL (URI) links. See [background |
||
190 | * notes](/docs/datamodel.html#identifierBg) for more details. |
||
191 | * |
||
192 | * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier |
||
193 | * |
||
194 | * @return static |
||
195 | * |
||
196 | * @see http://schema.org/identifier |
||
197 | */ |
||
198 | public function identifier($identifier) |
||
199 | { |
||
200 | return $this->setProperty('identifier', $identifier); |
||
201 | } |
||
202 | |||
203 | /** |
||
204 | * An image of the item. This can be a [[URL]] or a fully described |
||
205 | * [[ImageObject]]. |
||
206 | * |
||
207 | * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image |
||
208 | * |
||
209 | * @return static |
||
210 | * |
||
211 | * @see http://schema.org/image |
||
212 | */ |
||
213 | public function image($image) |
||
214 | { |
||
215 | return $this->setProperty('image', $image); |
||
216 | } |
||
217 | |||
218 | /** |
||
219 | * Indicates a page (or other CreativeWork) for which this thing is the main |
||
220 | * entity being described. See [background |
||
221 | * notes](/docs/datamodel.html#mainEntityBackground) for details. |
||
222 | * |
||
223 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage |
||
224 | * |
||
225 | * @return static |
||
226 | * |
||
227 | * @see http://schema.org/mainEntityOfPage |
||
228 | */ |
||
229 | public function mainEntityOfPage($mainEntityOfPage) |
||
230 | { |
||
231 | return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); |
||
232 | } |
||
233 | |||
234 | /** |
||
235 | * The name of the item. |
||
236 | * |
||
237 | * @param string|string[] $name |
||
238 | * |
||
239 | * @return static |
||
240 | * |
||
241 | * @see http://schema.org/name |
||
242 | */ |
||
243 | public function name($name) |
||
244 | { |
||
245 | return $this->setProperty('name', $name); |
||
246 | } |
||
247 | |||
248 | /** |
||
249 | * Indicates a potential Action, which describes an idealized action in |
||
250 | * which this thing would play an 'object' role. |
||
251 | * |
||
252 | * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction |
||
253 | * |
||
254 | * @return static |
||
255 | * |
||
256 | * @see http://schema.org/potentialAction |
||
257 | */ |
||
258 | public function potentialAction($potentialAction) |
||
259 | { |
||
260 | return $this->setProperty('potentialAction', $potentialAction); |
||
261 | } |
||
262 | |||
263 | /** |
||
264 | * The product or service this support contact point is related to (such as |
||
265 | * product support for a particular product line). This can be a specific |
||
266 | * product or product line (e.g. "iPhone") or a general category of products |
||
267 | * or services (e.g. "smartphones"). |
||
268 | * |
||
269 | * @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $productSupported |
||
270 | * |
||
271 | * @return static |
||
272 | * |
||
273 | * @see http://schema.org/productSupported |
||
274 | */ |
||
275 | public function productSupported($productSupported) |
||
276 | { |
||
277 | return $this->setProperty('productSupported', $productSupported); |
||
278 | } |
||
279 | |||
280 | /** |
||
281 | * URL of a reference Web page that unambiguously indicates the item's |
||
282 | * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or |
||
283 | * official website. |
||
284 | * |
||
285 | * @param string|string[] $sameAs |
||
286 | * |
||
287 | * @return static |
||
288 | * |
||
289 | * @see http://schema.org/sameAs |
||
290 | */ |
||
291 | public function sameAs($sameAs) |
||
292 | { |
||
293 | return $this->setProperty('sameAs', $sameAs); |
||
294 | } |
||
295 | |||
296 | /** |
||
297 | * The geographic area where the service is provided. |
||
298 | * |
||
299 | * @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 |
||
300 | * |
||
301 | * @return static |
||
302 | * |
||
303 | * @see http://schema.org/serviceArea |
||
304 | */ |
||
305 | public function serviceArea($serviceArea) |
||
306 | { |
||
307 | return $this->setProperty('serviceArea', $serviceArea); |
||
308 | } |
||
309 | |||
310 | /** |
||
311 | * A CreativeWork or Event about this Thing. |
||
312 | * |
||
313 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf |
||
314 | * |
||
315 | * @return static |
||
316 | * |
||
317 | * @see http://schema.org/subjectOf |
||
318 | */ |
||
319 | public function subjectOf($subjectOf) |
||
320 | { |
||
321 | return $this->setProperty('subjectOf', $subjectOf); |
||
322 | } |
||
323 | |||
324 | /** |
||
325 | * The telephone number. |
||
326 | * |
||
327 | * @param string|string[] $telephone |
||
328 | * |
||
329 | * @return static |
||
330 | * |
||
331 | * @see http://schema.org/telephone |
||
332 | */ |
||
333 | public function telephone($telephone) |
||
334 | { |
||
335 | return $this->setProperty('telephone', $telephone); |
||
336 | } |
||
337 | |||
338 | /** |
||
339 | * URL of the item. |
||
340 | * |
||
341 | * @param string|string[] $url |
||
342 | * |
||
343 | * @return static |
||
344 | * |
||
345 | * @see http://schema.org/url |
||
346 | */ |
||
347 | public function url($url) |
||
348 | { |
||
349 | return $this->setProperty('url', $url); |
||
350 | } |
||
351 | |||
352 | } |
||
353 |
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.