Skip to content

Commit 7745db1

Browse files
committed
removing spatie/laravel-data dependency
1 parent 48c67e1 commit 7745db1

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Dec 10, 2024 - v1.2.2
4+
- removing spatie/laravel-data dependency
5+
36
## November 10, 2024 - v1.2.1
47
- removing the requirement to publish config file
58

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"illuminate/contracts": "^9.0|^10.0|^11.0",
4242
"kongulov/interact-with-enum": "^1.0",
4343
"sharpapi/php-core": "^1.0",
44-
"spatie/laravel-data": "^3.0|^4.0",
4544
"spatie/url": "^2.4"
4645
},
4746
"require-dev": {

src/Dto/JobDescriptionParameters.php

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace SharpAPI\SharpApiService\Dto;
66

7-
use Spatie\LaravelData\Data;
8-
9-
class JobDescriptionParameters extends Data
7+
class JobDescriptionParameters
108
{
119
public function __construct(
1210
public string $name,
@@ -23,4 +21,23 @@ public function __construct(
2321
public ?string $context = null,
2422
public ?string $language = null
2523
) {}
24+
25+
public function toArray(): array
26+
{
27+
return [
28+
'name' => $this->name,
29+
'company_name' => $this->company_name,
30+
'minimum_work_experience' => $this->minimum_work_experience,
31+
'minimum_education' => $this->minimum_education,
32+
'employment_type' => $this->employment_type,
33+
'required_skills' => $this->required_skills,
34+
'optional_skills' => $this->optional_skills,
35+
'country' => $this->country,
36+
'remote' => $this->remote,
37+
'visa_sponsored' => $this->visa_sponsored,
38+
'voice_tone' => $this->voice_tone,
39+
'context' => $this->context,
40+
'language' => $this->language,
41+
];
42+
}
2643
}

0 commit comments

Comments
 (0)