api/laravel/Bus/BatchRepository.yaml
2024-09-26 02:03:21 -07:00

141 lines
2.6 KiB
YAML

name: BatchRepository
class_comment: null
dependencies:
- name: Closure
type: class
source: Closure
properties: []
methods:
- name: get
visibility: public
parameters:
- name: limit
- name: before
comment: '# * Retrieve a list of batches.
# *
# * @param int $limit
# * @param mixed $before
# * @return \Illuminate\Bus\Batch[]'
- name: find
visibility: public
parameters:
- name: batchId
comment: '# * Retrieve information about an existing batch.
# *
# * @param string $batchId
# * @return \Illuminate\Bus\Batch|null'
- name: store
visibility: public
parameters:
- name: batch
comment: '# * Store a new pending batch.
# *
# * @param \Illuminate\Bus\PendingBatch $batch
# * @return \Illuminate\Bus\Batch'
- name: incrementTotalJobs
visibility: public
parameters:
- name: batchId
- name: amount
comment: '# * Increment the total number of jobs within the batch.
# *
# * @param string $batchId
# * @param int $amount
# * @return void'
- name: decrementPendingJobs
visibility: public
parameters:
- name: batchId
- name: jobId
comment: '# * Decrement the total number of pending jobs for the batch.
# *
# * @param string $batchId
# * @param string $jobId
# * @return \Illuminate\Bus\UpdatedBatchJobCounts'
- name: incrementFailedJobs
visibility: public
parameters:
- name: batchId
- name: jobId
comment: '# * Increment the total number of failed jobs for the batch.
# *
# * @param string $batchId
# * @param string $jobId
# * @return \Illuminate\Bus\UpdatedBatchJobCounts'
- name: markAsFinished
visibility: public
parameters:
- name: batchId
comment: '# * Mark the batch that has the given ID as finished.
# *
# * @param string $batchId
# * @return void'
- name: cancel
visibility: public
parameters:
- name: batchId
comment: '# * Cancel the batch that has the given ID.
# *
# * @param string $batchId
# * @return void'
- name: delete
visibility: public
parameters:
- name: batchId
comment: '# * Delete the batch that has the given ID.
# *
# * @param string $batchId
# * @return void'
- name: transaction
visibility: public
parameters:
- name: callback
comment: '# * Execute the given Closure within a storage specific transaction.
# *
# * @param \Closure $callback
# * @return mixed'
- name: rollBack
visibility: public
parameters: []
comment: '# * Rollback the last database transaction for the connection.
# *
# * @return void'
traits:
- Closure
interfaces: []