ExecutionResult
in package
implements
ExecutionResultInterface
The results of an executed command
TODO: Figure where we can put this for reuse without creating an ever-growing blob
Tags
Interfaces, Classes, Traits and Enums
- ExecutionResultInterface
- The results of an executed command
Table of Contents
- $code : int
- $output : array<string|int, mixed>
- __construct() : mixed
- __toString() : string
- The execution's output as a string
- getOutputArray() : array<string|int, string>
- The execution's output as potentially empty array of strings
- getOutputString() : string
- The execution's output as a string
- getReturnCode() : int
- The return code of an execution or null
Properties
$code
private
int
$code
= 0
$output
private
array<string|int, mixed>
$output
= []
Methods
__construct()
public
__construct([array<string|int, mixed> $output = [] ], int $code) : mixed
Parameters
- $output : array<string|int, mixed> = []
- $code : int
Return values
mixed —__toString()
The execution's output as a string
public
__toString() : string
Return values
string —getOutputArray()
The execution's output as potentially empty array of strings
public
getOutputArray() : array<string|int, string>
Return values
array<string|int, string> —getOutputString()
The execution's output as a string
public
getOutputString() : string
Return values
string —getReturnCode()
The return code of an execution or null
public
getReturnCode() : int