Batch
in package
FinalYes
Tags
Table of Contents
Properties
- $batchStrategy : string|null
- $details : TaskDetails
- $duration : string|null
- $finishedAt : DateTimeImmutable|null
- $progress : BatchProgress|null
- $raw : array<string|int, mixed>
- $startedAt : DateTimeImmutable
- $stats : BatchStats
- $uid : int
Methods
- __construct() : mixed
- fromArray() : self
- getBatchStrategy() : non-empty-string|null
- Free-form reason why the batch stopped accepting tasks (not a closed enum).
- getDetails() : TaskDetails
- getDuration() : non-empty-string|null
- getFinishedAt() : DateTimeImmutable|null
- getProgress() : BatchProgress|null
- Real-time progress while the batch is processing; null when finished.
- getStartedAt() : DateTimeImmutable
- getStats() : BatchStats
- getUid() : int
- toArray() : RawBatch
Properties
$batchStrategy read-only
private
string|null
$batchStrategy
$details read-only
private
TaskDetails
$details
$duration read-only
private
string|null
$duration
$finishedAt read-only
private
DateTimeImmutable|null
$finishedAt
$progress read-only
private
BatchProgress|null
$progress
$raw read-only
private
array<string|int, mixed>
$raw
$startedAt read-only
private
DateTimeImmutable
$startedAt
$stats read-only
private
BatchStats
$stats
$uid read-only
private
int
$uid
Methods
__construct()
public
__construct(int $uid, TaskDetails $details, BatchStats $stats, non-empty-string|null $duration, DateTimeImmutable $startedAt, DateTimeImmutable|null $finishedAt, BatchProgress|null $progress, non-empty-string|null $batchStrategy, RawBatch $raw) : mixed
Parameters
- $uid : int
- $details : TaskDetails
- $stats : BatchStats
- $duration : non-empty-string|null
- $startedAt : DateTimeImmutable
- $finishedAt : DateTimeImmutable|null
- $progress : BatchProgress|null
- $batchStrategy : non-empty-string|null
- $raw : RawBatch
fromArray()
public
static fromArray(RawBatch $data) : self
Parameters
- $data : RawBatch
Return values
selfgetBatchStrategy()
Free-form reason why the batch stopped accepting tasks (not a closed enum).
public
getBatchStrategy() : non-empty-string|null
Return values
non-empty-string|nullgetDetails()
public
getDetails() : TaskDetails
Return values
TaskDetailsgetDuration()
public
getDuration() : non-empty-string|null
Return values
non-empty-string|nullgetFinishedAt()
public
getFinishedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetProgress()
Real-time progress while the batch is processing; null when finished.
public
getProgress() : BatchProgress|null
When present, percentage is documented by Meilisearch as 0.0–100.0.
Return values
BatchProgress|nullgetStartedAt()
public
getStartedAt() : DateTimeImmutable
Return values
DateTimeImmutablegetStats()
public
getStats() : BatchStats
Return values
BatchStatsgetUid()
public
getUid() : int
Return values
inttoArray()
public
toArray() : RawBatch