MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

ShellResult

MMO\core\server · 1 symbole · générée le 27 Oct 2026

class

ShellResult

ShellRunner.php:11

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

code

readonly
readonly int $code
Type
int

command

readonly
readonly string $command
Type
string

err

readonly
readonly string $err
Type
string

out

readonly
readonly string $out
Type
string

simulated

readonly
readonly bool $simulated
Type
bool

Méthodes5

getOutput()

ShellRunner.php:25
function getOutput(): string
retournestringstdout, trimmed -- what you want in 99% of cases.

__construct($command, $out, $err, $code, $simulated)

ShellRunner.php:12
function __construct( string $command, string $out, string $err, int $code, bool $simulated = false )
$commandstring
$outstring
$errstring
$codeint
$simulated = falsebool