ShellResult
MMO\core\server · 1 symbole · générée le 27 Oct 2026
The outcome of one command: stdout, stderr and -- crucially -- a real exit code.
final class MMO\core\server\ShellResult- Espace de noms
MMO\core\server- Voir
ShellRunner::run
Propriétés5
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
Méthodes5
function assert(object|string $origin): staticfunction getLines(): array| retourne | array | stdout split into non-empty trimmed lines. |
function getOutput(): string| retourne | 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
)