MediaWiki REL1_35
MediaWiki\Shell\Result Class Reference

Returned by MediaWiki\Shell\Command::execute() More...

Public Member Functions

 __construct (int $exitCode, string $stdout, ?string $stderr)
 
 getExitCode ()
 Returns exit code of the process.
 
 getStderr ()
 Returns stderr of the process or null if the Command was configured to add stderr to stdout with includeStderr( true )
 
 getStdout ()
 Returns stdout of the process.
 

Private Attributes

int $exitCode
 
string null $stderr
 
string $stdout
 

Detailed Description

Returned by MediaWiki\Shell\Command::execute()

Since
1.30

Definition at line 30 of file Result.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Shell\Result::__construct ( int  $exitCode,
string  $stdout,
?string  $stderr 
)
Parameters
int$exitCode
string$stdout
string | null$stderr

Definition at line 45 of file Result.php.

References MediaWiki\Shell\Result\$exitCode, MediaWiki\Shell\Result\$stderr, and MediaWiki\Shell\Result\$stdout.

Member Function Documentation

◆ getExitCode()

MediaWiki\Shell\Result::getExitCode ( )

Returns exit code of the process.

Returns
int

Definition at line 56 of file Result.php.

◆ getStderr()

MediaWiki\Shell\Result::getStderr ( )

Returns stderr of the process or null if the Command was configured to add stderr to stdout with includeStderr( true )

Returns
string|null

Definition at line 75 of file Result.php.

◆ getStdout()

MediaWiki\Shell\Result::getStdout ( )

Returns stdout of the process.

Returns
string

Definition at line 65 of file Result.php.

Member Data Documentation

◆ $exitCode

int MediaWiki\Shell\Result::$exitCode
private

Definition at line 32 of file Result.php.

Referenced by MediaWiki\Shell\Result\__construct().

◆ $stderr

string null MediaWiki\Shell\Result::$stderr
private

Definition at line 38 of file Result.php.

Referenced by MediaWiki\Shell\Result\__construct().

◆ $stdout

string MediaWiki\Shell\Result::$stdout
private

Definition at line 35 of file Result.php.

Referenced by MediaWiki\Shell\Result\__construct().


The documentation for this class was generated from the following file: