<?php namespace Illuminate\Bus; use Carbon\CarbonImmutable; use Illuminate\Contracts\Queue\Factory as QueueFactory; class BatchFactory { /** * The queue factory implementation. * * @var \Illuminate\Contracts\Queue\Factory */ protected $queue; /** * Create a new batch factory instance. * * @param \Illuminate\Contracts\Queue\Factory $queue * @return void */ public function __construct(QueueFactory $queue) { $this->queue = $queue; } /** * Create a new batch instance. * * @param \Illuminate\Bus\BatchRepository $repository * @param string $id * @param string $name * @param int $totalJobs * @param int $pendingJobs * @param int $failedJobs * @param array $failedJobIds * @param array $options * @param \Carbon\CarbonImmutable $createdAt * @param \Carbon\CarbonImmutable|null $cancelledAt * @param \Carbon\CarbonImmutable|null $finishedAt * @return \Illuminate\Bus\Batch */ public function make(BatchRepository $repository, string $id, string $name, int $totalJobs, int $pendingJobs, int $failedJobs, array $failedJobIds, array $options, CarbonImmutable $createdAt, ?CarbonImmutable $cancelledAt, ?CarbonImmutable $finishedAt) { return new Batch($this->queue, $repository, $id, $name, $totalJobs, $pendingJobs, $failedJobs, $failedJobIds, $options, $createdAt, $cancelledAt, $finishedAt); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Events | Folder | 0755 |
|
|
Batch.php | File | 11.88 KB | 0644 |
|
BatchFactory.php | File | 1.71 KB | 0644 |
|
BatchRepository.php | File | 2.13 KB | 0644 |
|
Batchable.php | File | 2.75 KB | 0644 |
|
BusServiceProvider.php | File | 1.96 KB | 0644 |
|
DatabaseBatchRepository.php | File | 10.59 KB | 0644 |
|
Dispatcher.php | File | 7.64 KB | 0644 |
|
LICENSE.md | File | 1.05 KB | 0644 |
|
PendingBatch.php | File | 6.89 KB | 0644 |
|
PrunableBatchRepository.php | File | 318 B | 0644 |
|
Queueable.php | File | 5.91 KB | 0644 |
|
UniqueLock.php | File | 1.68 KB | 0644 |
|
UpdatedBatchJobCounts.php | File | 856 B | 0644 |
|
composer.json | File | 998 B | 0644 |
|