Method |
Description |
|
__construct ( string $cmd, string | null $cwd = null, array $env = null ) |
Creates a new instance of a CLI call |
|
create ( string $cmd, string | null $cwd = null, array $env = null ) : static |
Factory method to create a call |
|
execute ( string | null $stdIn = null ) : CallResult |
Executes the call using the preconfigured command |
|
getCmd ( ) : string |
Returns the CLI command |
|
getCwd ( ) : string | null |
Returns the working directory for the call |
|
getEnv ( ) : array | null |
Returns the environment variables for the call - if overridden |
|
setCmd ( string $cmd ) : Call |
Sets the CLI command |
|
setCwd ( string | null $cwd ) : Call |
Sets the working directory for the call |
|
setEnv ( array $env = null ) : Call |
Sets the environment variables for the call |
|