Skip to content

Chainable

  • Full name: \Codefy\Framework\Pipeline\Chainable

Methods

send

Set the object being sent through the pipeline.

public send(mixed $passable): self

Parameters:

Parameter Type Description
$passable mixed

through

Set the array of pipes.

public through(array|mixed $pipes): self

Parameters:

Parameter Type Description
$pipes array|mixed

via

Set the method to call on the pipes.

public via(string $method): self

Parameters:

Parameter Type Description
$method string

then

Run the pipeline with a final destination callback.

public then(\Closure $destination): mixed

Parameters:

Parameter Type Description
$destination \Closure

thenReturn

Run the pipeline and return the result.

public thenReturn(): mixed

run

Run a single pipe.

public run(string $pipe, mixed $data = true): mixed

Parameters:

Parameter Type Description
$pipe string
$data mixed


Automatically generated on 2025-10-13