Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| EvaluateAnalyticsAlertsJob | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| handle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Analytics\Infrastructure\Jobs; |
| 6 | |
| 7 | use Illuminate\Bus\Queueable; |
| 8 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | use Illuminate\Foundation\Bus\Dispatchable; |
| 10 | use Illuminate\Queue\InteractsWithQueue; |
| 11 | use Illuminate\Queue\SerializesModels; |
| 12 | use ImovelZapAi\Analytics\Application\Actions\EvaluateAnalyticsAlertsAction; |
| 13 | |
| 14 | final class EvaluateAnalyticsAlertsJob implements ShouldQueue |
| 15 | { |
| 16 | use Dispatchable; |
| 17 | use InteractsWithQueue; |
| 18 | use Queueable; |
| 19 | use SerializesModels; |
| 20 | |
| 21 | public function __construct(public readonly string $tenantId) {} |
| 22 | |
| 23 | public function handle(EvaluateAnalyticsAlertsAction $action): void |
| 24 | { |
| 25 | $action->execute($this->tenantId); |
| 26 | } |
| 27 | } |