class ProcessPoolResults implements ArrayAccess (View source)

Properties

protected array $results

The results of the processes.

Methods

void
__construct(array $results)

Create a new process pool result set.

bool
successful()

Determine if all of the processes in the pool were successful.

bool
failed()

Determine if any of the processes in the pool failed.

collect()

Get the results as a collection.

bool
offsetExists(int $offset)

Determine if the given array offset exists.

mixed
offsetGet(int $offset)

Get the result at the given offset.

void
offsetSet(int $offset, mixed $value)

Set the result at the given offset.

void
offsetUnset(int $offset)

Unset the result at the given offset.

Details

void __construct(array $results)

Create a new process pool result set.

Parameters

array $results

Return Value

void

bool successful()

Determine if all of the processes in the pool were successful.

Return Value

bool

bool failed()

Determine if any of the processes in the pool failed.

Return Value

bool

Collection collect()

Get the results as a collection.

Return Value

Collection

bool offsetExists(int $offset)

Determine if the given array offset exists.

Parameters

int $offset

Return Value

bool

mixed offsetGet(int $offset)

Get the result at the given offset.

Parameters

int $offset

Return Value

mixed

void offsetSet(int $offset, mixed $value)

Set the result at the given offset.

Parameters

int $offset
mixed $value

Return Value

void

void offsetUnset(int $offset)

Unset the result at the given offset.

Parameters

int $offset

Return Value

void