BatchRepositoryFake
class BatchRepositoryFake implements BatchRepository (View source)
Properties
| protected Batch[] | $batches | The batches stored in the repository.  | 
                
Methods
Increment the total number of jobs within the batch.
Decrement the total number of pending jobs for the batch.
Increment the total number of failed jobs for the batch.
Mark the batch that has the given ID as finished.
Cancel the batch that has the given ID.
Delete the batch that has the given ID.
Details
        
                            Batch[]
    get(int $limit, mixed $before)
        
    
    Retrieve a list of batches.
        
                            Batch|null
    find(string $batchId)
        
    
    Retrieve information about an existing batch.
        
                            Batch
    store(PendingBatch $batch)
        
    
    Store a new pending batch.
        
                            void
    incrementTotalJobs(string $batchId, int $amount)
        
    
    Increment the total number of jobs within the batch.
        
                            UpdatedBatchJobCounts
    decrementPendingJobs(string $batchId, string $jobId)
        
    
    Decrement the total number of pending jobs for the batch.
        
                            UpdatedBatchJobCounts
    incrementFailedJobs(string $batchId, string $jobId)
        
    
    Increment the total number of failed jobs for the batch.
        
                            void
    markAsFinished(string $batchId)
        
    
    Mark the batch that has the given ID as finished.
        
                            void
    cancel(string $batchId)
        
    
    Cancel the batch that has the given ID.
        
                            void
    delete(string $batchId)
        
    
    Delete the batch that has the given ID.
        
                            mixed
    transaction(Closure $callback)
        
    
    Execute the given Closure within a storage specific transaction.