Documentation

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
author

Ralf Lang ralf.lang@ralf-lang.de

copyright

2008-2022 Horde LLC

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

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
Return values
int

Search results