Meilisearch PHP | Documentation

RemoteTask
in package

FinalYes
Tags
phpstan-import-type

RawTaskError from Task

phpstan-type

RawRemoteTask array{ taskUid?: non-negative-int, error?: RawTaskError|null }

since

Meilisearch v1.19.0

Table of Contents

Properties

$error  : TaskError|null
$taskUid  : int|null

Methods

__construct()  : mixed
fromArray()  : self
A remote task carries either the `taskUid` it was enqueued with on the remote, or the `error` that prevented it from being enqueued there.

Properties

Methods

__construct()

public __construct(int|null $taskUid, TaskError|null $error) : mixed
Parameters
$taskUid : int|null
$error : TaskError|null

fromArray()

A remote task carries either the `taskUid` it was enqueued with on the remote, or the `error` that prevented it from being enqueued there.

public static fromArray(RawRemoteTask $data) : self
Parameters
$data : RawRemoteTask
Return values
self
On this page

Search results