ProcessDecorator
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.
from
ForwardsCalls
mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
from
ForwardsCalls
static never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
from
ForwardsCalls
__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.
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.
in
ForwardsCalls at line 66
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
at line 28
__construct(Process $process, Closure|array|string $command)
Create a new process decorator instance.
at line 39
mixed
__call(string $method, array $parameters)
Handle dynamic calls to the process instance.