class Illuminate / Support / Testing / Fakes / BatchRepositoryFake

BatchRepositoryFake

Implements

Properties

protected

$batches Illuminate\...\Batch[]

The batches stored in the repository.

Default: []

Methods

public

get ( $limit , $before ) : Illuminate\...\Batch[]

Retrieve a list of batches.

Parameters

  • $limit int
  • $before mixed
public

find ( string $batchId ) : Batch |null

Retrieve information about an existing batch.

Parameters

  • $batchId string
public

store ( PendingBatch $batch ) : Batch

Store a new pending batch.

Parameters

public

incrementTotalJobs ( string $batchId , int $amount ) : void

Increment the total number of jobs within the batch.

Parameters

  • $batchId string
  • $amount int
public

decrementPendingJobs ( string $batchId , string $jobId ) : UpdatedBatchJobCounts

Decrement the total number of pending jobs for the batch.

Parameters

  • $batchId string
  • $jobId string
public

incrementFailedJobs ( string $batchId , string $jobId ) : UpdatedBatchJobCounts

Increment the total number of failed jobs for the batch.

Parameters

  • $batchId string
  • $jobId string
public

markAsFinished ( string $batchId ) : void

Mark the batch that has the given ID as finished.

Parameters

  • $batchId string
public

cancel ( string $batchId ) : void

Cancel the batch that has the given ID.

Parameters

  • $batchId string
public

delete ( string $batchId ) : void

Delete the batch that has the given ID.

Parameters

  • $batchId string
public

transaction ( Closure $callback ) : mixed

Execute the given Closure within a storage specific transaction.

Parameters