-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJobDescriptionParameters.php
More file actions
45 lines (40 loc) · 1.38 KB
/
JobDescriptionParameters.php
File metadata and controls
45 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
declare(strict_types=1);
namespace SharpAPI\SharpApiService\Dto;
class JobDescriptionParameters
{
public function __construct(
public string $name,
public ?string $company_name = null,
public ?string $minimum_work_experience = null,
public ?string $minimum_education = null,
public ?string $employment_type = null,
public ?array $required_skills = null,
public ?array $optional_skills = null,
public ?string $country = null,
public ?bool $remote = null,
public ?bool $visa_sponsored = null,
public ?string $voice_tone = null,
public ?string $context = null,
public ?string $language = null,
)
{
}
public function toArray(): array
{
return [
'name' => $this->name,
'company_name' => $this->company_name,
'minimum_work_experience' => $this->minimum_work_experience,
'employment_type' => $this->employment_type,
'required_skills' => $this->required_skills,
'optional_skills' => $this->optional_skills,
'country' => $this->country,
'remote' => $this->remote,
'visa_sponsored' => $this->visa_sponsored,
'voice_tone' => $this->voice_tone,
'context' => $this->context,
'language' => $this->language,
];
}
}