ShellResult
MMO\core\server · 1 symbol · generated 30 Sep 2026
The outcome of one command: stdout, stderr and -- crucially -- a real exit code.
final class MMO\core\server\ShellResult- Namespace
MMO\core\server- See
ShellRunner::run
Properties5
readonly int $code- Type
- int
readonly string $command- Type
- string
readonly string $err- Type
- string
readonly string $out- Type
- string
readonly bool $simulated- Type
- bool
Methods5
function assert(object|string $origin): staticfunction getLines(): array| returns | array | stdout split into non-empty trimmed lines. |
function getOutput(): string| returns | string | stdout, trimmed -- what you want in 99% of cases. |
function isOk(): boolfunction __construct(
string $command,
string $out,
string $err,
int $code,
bool $simulated = false
)