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\JobPostingContract; |
||
6 | use \Spatie\SchemaOrg\Contracts\IntangibleContract; |
||
7 | use \Spatie\SchemaOrg\Contracts\ThingContract; |
||
8 | |||
9 | /** |
||
10 | * A listing that describes a job opening in a certain organization. |
||
11 | * |
||
12 | * @see http://schema.org/JobPosting |
||
13 | * |
||
14 | * @method static industry($industry) The value should be instance of pending types DefinedTerm|DefinedTerm[]|string|string[] |
||
15 | * @method static skills($skills) The value should be instance of pending types DefinedTerm|DefinedTerm[]|string|string[] |
||
16 | */ |
||
17 | View Code Duplication | class JobPosting extends BaseType implements JobPostingContract, IntangibleContract, ThingContract |
|
0 ignored issues
–
show
|
|||
18 | { |
||
19 | /** |
||
20 | * An additional type for the item, typically used for adding more specific |
||
21 | * types from external vocabularies in microdata syntax. This is a |
||
22 | * relationship between something and a class that the thing is in. In RDFa |
||
23 | * syntax, it is better to use the native RDFa syntax - the 'typeof' |
||
24 | * attribute - for multiple types. Schema.org tools may have only weaker |
||
25 | * understanding of extra types, in particular those defined externally. |
||
26 | * |
||
27 | * @param string|string[] $additionalType |
||
28 | * |
||
29 | * @return static |
||
30 | * |
||
31 | * @see http://schema.org/additionalType |
||
32 | */ |
||
33 | public function additionalType($additionalType) |
||
34 | { |
||
35 | return $this->setProperty('additionalType', $additionalType); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * An alias for the item. |
||
40 | * |
||
41 | * @param string|string[] $alternateName |
||
42 | * |
||
43 | * @return static |
||
44 | * |
||
45 | * @see http://schema.org/alternateName |
||
46 | */ |
||
47 | public function alternateName($alternateName) |
||
48 | { |
||
49 | return $this->setProperty('alternateName', $alternateName); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * The base salary of the job or of an employee in an EmployeeRole. |
||
54 | * |
||
55 | * @param \Spatie\SchemaOrg\Contracts\MonetaryAmountContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountContract[]|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract|\Spatie\SchemaOrg\Contracts\PriceSpecificationContract[]|float|float[]|int|int[] $baseSalary |
||
56 | * |
||
57 | * @return static |
||
58 | * |
||
59 | * @see http://schema.org/baseSalary |
||
60 | */ |
||
61 | public function baseSalary($baseSalary) |
||
62 | { |
||
63 | return $this->setProperty('baseSalary', $baseSalary); |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Description of benefits associated with the job. |
||
68 | * |
||
69 | * @param string|string[] $benefits |
||
70 | * |
||
71 | * @return static |
||
72 | * |
||
73 | * @see http://schema.org/benefits |
||
74 | */ |
||
75 | public function benefits($benefits) |
||
76 | { |
||
77 | return $this->setProperty('benefits', $benefits); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * Publication date of an online listing. |
||
82 | * |
||
83 | * @param \DateTimeInterface|\DateTimeInterface[] $datePosted |
||
84 | * |
||
85 | * @return static |
||
86 | * |
||
87 | * @see http://schema.org/datePosted |
||
88 | */ |
||
89 | public function datePosted($datePosted) |
||
90 | { |
||
91 | return $this->setProperty('datePosted', $datePosted); |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * A description of the item. |
||
96 | * |
||
97 | * @param string|string[] $description |
||
98 | * |
||
99 | * @return static |
||
100 | * |
||
101 | * @see http://schema.org/description |
||
102 | */ |
||
103 | public function description($description) |
||
104 | { |
||
105 | return $this->setProperty('description', $description); |
||
106 | } |
||
107 | |||
108 | /** |
||
109 | * A sub property of description. A short description of the item used to |
||
110 | * disambiguate from other, similar items. Information from other properties |
||
111 | * (in particular, name) may be necessary for the description to be useful |
||
112 | * for disambiguation. |
||
113 | * |
||
114 | * @param string|string[] $disambiguatingDescription |
||
115 | * |
||
116 | * @return static |
||
117 | * |
||
118 | * @see http://schema.org/disambiguatingDescription |
||
119 | */ |
||
120 | public function disambiguatingDescription($disambiguatingDescription) |
||
121 | { |
||
122 | return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); |
||
123 | } |
||
124 | |||
125 | /** |
||
126 | * Educational background needed for the position or Occupation. |
||
127 | * |
||
128 | * @param string|string[] $educationRequirements |
||
129 | * |
||
130 | * @return static |
||
131 | * |
||
132 | * @see http://schema.org/educationRequirements |
||
133 | */ |
||
134 | public function educationRequirements($educationRequirements) |
||
135 | { |
||
136 | return $this->setProperty('educationRequirements', $educationRequirements); |
||
137 | } |
||
138 | |||
139 | /** |
||
140 | * Type of employment (e.g. full-time, part-time, contract, temporary, |
||
141 | * seasonal, internship). |
||
142 | * |
||
143 | * @param string|string[] $employmentType |
||
144 | * |
||
145 | * @return static |
||
146 | * |
||
147 | * @see http://schema.org/employmentType |
||
148 | */ |
||
149 | public function employmentType($employmentType) |
||
150 | { |
||
151 | return $this->setProperty('employmentType', $employmentType); |
||
152 | } |
||
153 | |||
154 | /** |
||
155 | * An estimated salary for a job posting or occupation, based on a variety |
||
156 | * of variables including, but not limited to industry, job title, and |
||
157 | * location. Estimated salaries are often computed by outside organizations |
||
158 | * rather than the hiring organization, who may not have committed to the |
||
159 | * estimated value. |
||
160 | * |
||
161 | * @param \Spatie\SchemaOrg\Contracts\MonetaryAmountContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountDistributionContract|\Spatie\SchemaOrg\Contracts\MonetaryAmountDistributionContract[]|\Spatie\SchemaOrg\Contracts\MonetaryAmountContract[]|float|float[]|int|int[] $estimatedSalary |
||
162 | * |
||
163 | * @return static |
||
164 | * |
||
165 | * @see http://schema.org/estimatedSalary |
||
166 | */ |
||
167 | public function estimatedSalary($estimatedSalary) |
||
168 | { |
||
169 | return $this->setProperty('estimatedSalary', $estimatedSalary); |
||
170 | } |
||
171 | |||
172 | /** |
||
173 | * Description of skills and experience needed for the position or |
||
174 | * Occupation. |
||
175 | * |
||
176 | * @param string|string[] $experienceRequirements |
||
177 | * |
||
178 | * @return static |
||
179 | * |
||
180 | * @see http://schema.org/experienceRequirements |
||
181 | */ |
||
182 | public function experienceRequirements($experienceRequirements) |
||
183 | { |
||
184 | return $this->setProperty('experienceRequirements', $experienceRequirements); |
||
185 | } |
||
186 | |||
187 | /** |
||
188 | * Organization offering the job position. |
||
189 | * |
||
190 | * @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $hiringOrganization |
||
191 | * |
||
192 | * @return static |
||
193 | * |
||
194 | * @see http://schema.org/hiringOrganization |
||
195 | */ |
||
196 | public function hiringOrganization($hiringOrganization) |
||
197 | { |
||
198 | return $this->setProperty('hiringOrganization', $hiringOrganization); |
||
199 | } |
||
200 | |||
201 | /** |
||
202 | * The identifier property represents any kind of identifier for any kind of |
||
203 | * [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides |
||
204 | * dedicated properties for representing many of these, either as textual |
||
205 | * strings or as URL (URI) links. See [background |
||
206 | * notes](/docs/datamodel.html#identifierBg) for more details. |
||
207 | * |
||
208 | * @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier |
||
209 | * |
||
210 | * @return static |
||
211 | * |
||
212 | * @see http://schema.org/identifier |
||
213 | */ |
||
214 | public function identifier($identifier) |
||
215 | { |
||
216 | return $this->setProperty('identifier', $identifier); |
||
217 | } |
||
218 | |||
219 | /** |
||
220 | * An image of the item. This can be a [[URL]] or a fully described |
||
221 | * [[ImageObject]]. |
||
222 | * |
||
223 | * @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image |
||
224 | * |
||
225 | * @return static |
||
226 | * |
||
227 | * @see http://schema.org/image |
||
228 | */ |
||
229 | public function image($image) |
||
230 | { |
||
231 | return $this->setProperty('image', $image); |
||
232 | } |
||
233 | |||
234 | /** |
||
235 | * Description of bonus and commission compensation aspects of the job. |
||
236 | * |
||
237 | * @param string|string[] $incentiveCompensation |
||
238 | * |
||
239 | * @return static |
||
240 | * |
||
241 | * @see http://schema.org/incentiveCompensation |
||
242 | */ |
||
243 | public function incentiveCompensation($incentiveCompensation) |
||
244 | { |
||
245 | return $this->setProperty('incentiveCompensation', $incentiveCompensation); |
||
246 | } |
||
247 | |||
248 | /** |
||
249 | * Description of bonus and commission compensation aspects of the job. |
||
250 | * |
||
251 | * @param string|string[] $incentives |
||
252 | * |
||
253 | * @return static |
||
254 | * |
||
255 | * @see http://schema.org/incentives |
||
256 | */ |
||
257 | public function incentives($incentives) |
||
258 | { |
||
259 | return $this->setProperty('incentives', $incentives); |
||
260 | } |
||
261 | |||
262 | /** |
||
263 | * Description of benefits associated with the job. |
||
264 | * |
||
265 | * @param string|string[] $jobBenefits |
||
266 | * |
||
267 | * @return static |
||
268 | * |
||
269 | * @see http://schema.org/jobBenefits |
||
270 | */ |
||
271 | public function jobBenefits($jobBenefits) |
||
272 | { |
||
273 | return $this->setProperty('jobBenefits', $jobBenefits); |
||
274 | } |
||
275 | |||
276 | /** |
||
277 | * A (typically single) geographic location associated with the job |
||
278 | * position. |
||
279 | * |
||
280 | * @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $jobLocation |
||
281 | * |
||
282 | * @return static |
||
283 | * |
||
284 | * @see http://schema.org/jobLocation |
||
285 | */ |
||
286 | public function jobLocation($jobLocation) |
||
287 | { |
||
288 | return $this->setProperty('jobLocation', $jobLocation); |
||
289 | } |
||
290 | |||
291 | /** |
||
292 | * Indicates a page (or other CreativeWork) for which this thing is the main |
||
293 | * entity being described. See [background |
||
294 | * notes](/docs/datamodel.html#mainEntityBackground) for details. |
||
295 | * |
||
296 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage |
||
297 | * |
||
298 | * @return static |
||
299 | * |
||
300 | * @see http://schema.org/mainEntityOfPage |
||
301 | */ |
||
302 | public function mainEntityOfPage($mainEntityOfPage) |
||
303 | { |
||
304 | return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); |
||
305 | } |
||
306 | |||
307 | /** |
||
308 | * The name of the item. |
||
309 | * |
||
310 | * @param string|string[] $name |
||
311 | * |
||
312 | * @return static |
||
313 | * |
||
314 | * @see http://schema.org/name |
||
315 | */ |
||
316 | public function name($name) |
||
317 | { |
||
318 | return $this->setProperty('name', $name); |
||
319 | } |
||
320 | |||
321 | /** |
||
322 | * A category describing the job, preferably using a term from a taxonomy |
||
323 | * such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), |
||
324 | * [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or |
||
325 | * similar, with the property repeated for each applicable value. Ideally |
||
326 | * the taxonomy should be identified, and both the textual label and formal |
||
327 | * code for the category should be provided. |
||
328 | * |
||
329 | * Note: for historical reasons, any textual label and formal code provided |
||
330 | * as a literal may be assumed to be from O*NET-SOC. |
||
331 | * |
||
332 | * @param string|string[] $occupationalCategory |
||
333 | * |
||
334 | * @return static |
||
335 | * |
||
336 | * @see http://schema.org/occupationalCategory |
||
337 | */ |
||
338 | public function occupationalCategory($occupationalCategory) |
||
339 | { |
||
340 | return $this->setProperty('occupationalCategory', $occupationalCategory); |
||
341 | } |
||
342 | |||
343 | /** |
||
344 | * Indicates a potential Action, which describes an idealized action in |
||
345 | * which this thing would play an 'object' role. |
||
346 | * |
||
347 | * @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction |
||
348 | * |
||
349 | * @return static |
||
350 | * |
||
351 | * @see http://schema.org/potentialAction |
||
352 | */ |
||
353 | public function potentialAction($potentialAction) |
||
354 | { |
||
355 | return $this->setProperty('potentialAction', $potentialAction); |
||
356 | } |
||
357 | |||
358 | /** |
||
359 | * Specific qualifications required for this role or Occupation. |
||
360 | * |
||
361 | * @param string|string[] $qualifications |
||
362 | * |
||
363 | * @return static |
||
364 | * |
||
365 | * @see http://schema.org/qualifications |
||
366 | */ |
||
367 | public function qualifications($qualifications) |
||
368 | { |
||
369 | return $this->setProperty('qualifications', $qualifications); |
||
370 | } |
||
371 | |||
372 | /** |
||
373 | * The Occupation for the JobPosting. |
||
374 | * |
||
375 | * @param \Spatie\SchemaOrg\Contracts\OccupationContract|\Spatie\SchemaOrg\Contracts\OccupationContract[] $relevantOccupation |
||
376 | * |
||
377 | * @return static |
||
378 | * |
||
379 | * @see http://schema.org/relevantOccupation |
||
380 | */ |
||
381 | public function relevantOccupation($relevantOccupation) |
||
382 | { |
||
383 | return $this->setProperty('relevantOccupation', $relevantOccupation); |
||
384 | } |
||
385 | |||
386 | /** |
||
387 | * Responsibilities associated with this role or Occupation. |
||
388 | * |
||
389 | * @param string|string[] $responsibilities |
||
390 | * |
||
391 | * @return static |
||
392 | * |
||
393 | * @see http://schema.org/responsibilities |
||
394 | */ |
||
395 | public function responsibilities($responsibilities) |
||
396 | { |
||
397 | return $this->setProperty('responsibilities', $responsibilities); |
||
398 | } |
||
399 | |||
400 | /** |
||
401 | * The currency (coded using [ISO |
||
402 | * 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary |
||
403 | * information in this job posting or for this employee. |
||
404 | * |
||
405 | * @param string|string[] $salaryCurrency |
||
406 | * |
||
407 | * @return static |
||
408 | * |
||
409 | * @see http://schema.org/salaryCurrency |
||
410 | */ |
||
411 | public function salaryCurrency($salaryCurrency) |
||
412 | { |
||
413 | return $this->setProperty('salaryCurrency', $salaryCurrency); |
||
414 | } |
||
415 | |||
416 | /** |
||
417 | * URL of a reference Web page that unambiguously indicates the item's |
||
418 | * identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or |
||
419 | * official website. |
||
420 | * |
||
421 | * @param string|string[] $sameAs |
||
422 | * |
||
423 | * @return static |
||
424 | * |
||
425 | * @see http://schema.org/sameAs |
||
426 | */ |
||
427 | public function sameAs($sameAs) |
||
428 | { |
||
429 | return $this->setProperty('sameAs', $sameAs); |
||
430 | } |
||
431 | |||
432 | /** |
||
433 | * Any special commitments associated with this job posting. Valid entries |
||
434 | * include VeteranCommit, MilitarySpouseCommit, etc. |
||
435 | * |
||
436 | * @param string|string[] $specialCommitments |
||
437 | * |
||
438 | * @return static |
||
439 | * |
||
440 | * @see http://schema.org/specialCommitments |
||
441 | */ |
||
442 | public function specialCommitments($specialCommitments) |
||
443 | { |
||
444 | return $this->setProperty('specialCommitments', $specialCommitments); |
||
445 | } |
||
446 | |||
447 | /** |
||
448 | * A CreativeWork or Event about this Thing. |
||
449 | * |
||
450 | * @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf |
||
451 | * |
||
452 | * @return static |
||
453 | * |
||
454 | * @see http://schema.org/subjectOf |
||
455 | */ |
||
456 | public function subjectOf($subjectOf) |
||
457 | { |
||
458 | return $this->setProperty('subjectOf', $subjectOf); |
||
459 | } |
||
460 | |||
461 | /** |
||
462 | * The title of the job. |
||
463 | * |
||
464 | * @param string|string[] $title |
||
465 | * |
||
466 | * @return static |
||
467 | * |
||
468 | * @see http://schema.org/title |
||
469 | */ |
||
470 | public function title($title) |
||
471 | { |
||
472 | return $this->setProperty('title', $title); |
||
473 | } |
||
474 | |||
475 | /** |
||
476 | * URL of the item. |
||
477 | * |
||
478 | * @param string|string[] $url |
||
479 | * |
||
480 | * @return static |
||
481 | * |
||
482 | * @see http://schema.org/url |
||
483 | */ |
||
484 | public function url($url) |
||
485 | { |
||
486 | return $this->setProperty('url', $url); |
||
487 | } |
||
488 | |||
489 | /** |
||
490 | * The date after when the item is not valid. For example the end of an |
||
491 | * offer, salary period, or a period of opening hours. |
||
492 | * |
||
493 | * @param \DateTimeInterface|\DateTimeInterface[] $validThrough |
||
494 | * |
||
495 | * @return static |
||
496 | * |
||
497 | * @see http://schema.org/validThrough |
||
498 | */ |
||
499 | public function validThrough($validThrough) |
||
500 | { |
||
501 | return $this->setProperty('validThrough', $validThrough); |
||
502 | } |
||
503 | |||
504 | /** |
||
505 | * The typical working hours for this job (e.g. 1st shift, night shift, |
||
506 | * 8am-5pm). |
||
507 | * |
||
508 | * @param string|string[] $workHours |
||
509 | * |
||
510 | * @return static |
||
511 | * |
||
512 | * @see http://schema.org/workHours |
||
513 | */ |
||
514 | public function workHours($workHours) |
||
515 | { |
||
516 | return $this->setProperty('workHours', $workHours); |
||
517 | } |
||
518 | |||
519 | } |
||
520 |
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.