class BatchFactory (View source)

Properties

protected Factory $queue

The queue factory implementation.

Methods

void
__construct(Factory $queue)

Create a new batch factory instance.

make(BatchRepository $repository, string $id, string $name, int $totalJobs, int $pendingJobs, int $failedJobs, array $failedJobIds, array $options, CarbonImmutable $createdAt, CarbonImmutable|null $cancelledAt, CarbonImmutable|null $finishedAt)

Create a new batch instance.

Details

void __construct(Factory $queue)

Create a new batch factory instance.

Parameters

Factory $queue

Return Value

void

Batch make(BatchRepository $repository, string $id, string $name, int $totalJobs, int $pendingJobs, int $failedJobs, array $failedJobIds, array $options, CarbonImmutable $createdAt, CarbonImmutable|null $cancelledAt, CarbonImmutable|null $finishedAt)

Create a new batch instance.

Parameters

BatchRepository $repository
string $id
string $name
int $totalJobs
int $pendingJobs
int $failedJobs
array $failedJobIds
array $options
CarbonImmutable $createdAt
CarbonImmutable|null $cancelledAt
CarbonImmutable|null $finishedAt

Return Value

Batch