phase 1 and 2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\JobApi\Transformers;
|
||||
|
||||
use App\Services\JobApi\DTO\JobData;
|
||||
|
||||
interface JobTransformer
|
||||
{
|
||||
/**
|
||||
* Transform a single job from API response to JobData DTO
|
||||
*
|
||||
* @param array $data Raw job data from API
|
||||
* @return JobData Standardized job data
|
||||
*/
|
||||
public function transform(array $data): JobData;
|
||||
|
||||
/**
|
||||
* Transform multiple jobs from API response
|
||||
*
|
||||
* @param array $jobs Array of raw job data from API
|
||||
* @return array<JobData> Array of standardized job data
|
||||
*/
|
||||
public function transformMany(array $jobs): array;
|
||||
}
|
||||
Reference in New Issue
Block a user