Method |
Description |
|
__construct ( Call $cliCall, resource $stdOut, resource $stdErr, integer $returnCode ) |
Creates a new result container for a CLI call |
|
__destruct ( ) |
Destructor closes the result and the internal stream resources |
|
assertSuccess ( string $message ) |
Checks if the CLI call has succeeded and throws an Exception otherwise |
|
close ( ) |
Closes the call result and the internal stream resources |
|
getCliCall ( ) : Call |
Returns the reference to the call that resulted in this result |
|
getReturnCode ( ) : integer |
Returns the return code |
|
getStdErr ( ) : string |
Returns the contents of stderr |
|
getStdErrStream ( ) : resource |
Returns the stderr stream |
|
getStdOut ( ) : string |
Returns the contents of stdout |
|
getStdOutStream ( ) : resource |
Returns the stdout stream |
|
hasStdErr ( ) : boolean |
Returns true if the call resulted in stderr to be populated |
|
hasStdOut ( ) : boolean |
Returns true if the call resulted in stdout to be populated |
|
throwIfError ( CallResult $result, string $message ) |
Checks if the CLI call has succeeded and throws an Exception otherwise |
|