class Pipe mixin Factory mixin PendingProcess (View source)

Properties

protected Factory $factory

The process factory instance.

protected callable $callback

The callback that resolves the pending processes.

protected array $pendingProcesses

The array of pending processes.

Methods

void
__construct(Factory $factory, callable $callback)

Create a new series of piped processes.

as(string $key)

Add a process to the pipe with a key.

run(callable|null $output = null)

Runs the processes in the pipe.

__call(string $method, array $parameters)

Dynamically proxy methods calls to a new pending process.

Details

void __construct(Factory $factory, callable $callback)

Create a new series of piped processes.

Parameters

Factory $factory
callable $callback

Return Value

void

PendingProcess as(string $key)

Add a process to the pipe with a key.

Parameters

string $key

Return Value

PendingProcess

ProcessResult run(callable|null $output = null)

Runs the processes in the pipe.

Parameters

callable|null $output

Return Value

ProcessResult

PendingProcess __call(string $method, array $parameters)

Dynamically proxy methods calls to a new pending process.

Parameters

string $method
array $parameters

Return Value

PendingProcess