| Total Complexity | 7 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CheckForBlocklistJob implements ShouldQueue |
||
| 14 | { |
||
| 15 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
|
|
|||
| 16 | |||
| 17 | protected array $entities = []; |
||
| 18 | |||
| 19 | protected string $class; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new job instance. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | 4 | public function __construct(string $class, array|int|string $entities = []) |
|
| 27 | { |
||
| 28 | 4 | $this->class = $class; |
|
| 29 | 4 | $this->entities = is_array($entities) ? $entities : [ $entities ]; |
|
| 30 | } |
||
| 31 | |||
| 32 | 3 | public function handle() |
|
| 42 | } |
||
| 43 | } |
||
| 46 |