final class ProcessDecorator mixin Process

internal  
 

Decorates a Symfony Process to return ProcessResult when terminated.

Traits

Methods

mixed
forwardCallTo(mixed $object, string $method, array $parameters)

Forward a method call to the given object.

mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)

Forward a method call to the given object, returning $this if the forwarded call returned itself.

static never
throwBadMethodCallException(string $method)

Throw a bad method call exception for the given method.

__construct(Process $process, Closure|array|string $command)

Create a new process decorator instance.

mixed
__call(string $method, array $parameters)

Handle dynamic calls to the process instance.

Details

in ForwardsCalls at line 22
protected mixed forwardCallTo(mixed $object, string $method, array $parameters)

Forward a method call to the given object.

Parameters

mixed $object
string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

in ForwardsCalls at line 52
protected mixed forwardDecoratedCallTo(mixed $object, string $method, array $parameters)

Forward a method call to the given object, returning $this if the forwarded call returned itself.

Parameters

mixed $object
string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

in ForwardsCalls at line 66
static protected never throwBadMethodCallException(string $method)

Throw a bad method call exception for the given method.

Parameters

string $method

Return Value

never

Exceptions

BadMethodCallException

at line 28
__construct(Process $process, Closure|array|string $command)

Create a new process decorator instance.

Parameters

Process $process

The underlying Symfony process

Closure|array|string $command

The original command

at line 39
mixed __call(string $method, array $parameters)

Handle dynamic calls to the process instance.

Parameters

string $method
array $parameters

Return Value

mixed