| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Jobs;
- use App\Services\ExamesImportService;
- class SyncExamesJob extends BaseImportJob
- {
- public function __construct(
- string $filePath,
- string $importId,
- int $userId,
- protected int $partnerAgreementId,
- ) {
- parent::__construct(
- $filePath,
- $importId,
- $userId,
- );
- }
- protected function getImportType(): string
- {
- return 'exame';
- }
- protected function runSync(string $filePath): array
- {
- return app(ExamesImportService::class)->syncFromExcel(
- $filePath,
- $this->partnerAgreementId,
- );
- }
- }
|