|
| exitCode ( $exitCode) |
| Set the exit code.
|
|
| stdout ( $stdout) |
| Set the stdout contents.
|
|
| stderr ( $stderr) |
| Set the stderr contents.
|
|
| merge (UnboxedResult $other) |
| Combine another result with this one.
|
|
| getExitCode () |
| Returns exit code of the process.
|
|
| getStdout () |
| Returns stdout of the process.
|
|
| getStderr () |
| Returns stderr of the process or null if the Command was configured to add stderr to stdout with includeStderr( true )
|
|
◆ exitCode()
Shellbox\Command\UnboxedResult::exitCode |
( |
| $exitCode | ) |
|
Set the exit code.
- Parameters
-
- Returns
- $this
◆ getExitCode()
Shellbox\Command\UnboxedResult::getExitCode |
( |
| ) |
|
Returns exit code of the process.
- Returns
- int|null
◆ getStderr()
Shellbox\Command\UnboxedResult::getStderr |
( |
| ) |
|
Returns stderr of the process or null if the Command was configured to add stderr to stdout with includeStderr( true )
- Returns
- string|null
◆ getStdout()
Shellbox\Command\UnboxedResult::getStdout |
( |
| ) |
|
Returns stdout of the process.
- Returns
- string|null
◆ merge()
Combine another result with this one.
The semantics are like the shell's "&&" operator, although in practice we use this to upgrade an UnboxedResult to a BoxedResult, so $this is typically empty.
- Parameters
-
◆ stderr()
Shellbox\Command\UnboxedResult::stderr |
( |
| $stderr | ) |
|
Set the stderr contents.
- Parameters
-
- Returns
- $this
◆ stdout()
Shellbox\Command\UnboxedResult::stdout |
( |
| $stdout | ) |
|
Set the stdout contents.
- Parameters
-
- Returns
- $this
The documentation for this class was generated from the following file:
- src/Command/UnboxedResult.php