| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Jobs;
- use App\Services\QuestionReviewService;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Queue\SerializesModels;
- class ProcessQuestionJob implements ShouldQueue
- {
- use Dispatchable;
- use InteractsWithQueue;
- use Queueable;
- use SerializesModels;
- public function __construct(public readonly int $candidateId)
- {
- }
- public function handle(QuestionReviewService $reviewService): void
- {
- $reviewService->promoteCandidateToQuestion($this->candidateId);
- }
- }
|