MediaWiki  1.33.0
MediaWiki\Shell\Result Class Reference

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

Collaboration diagram for MediaWiki\Shell\Result:

Public Member Functions

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

Private Attributes

int $exitCode
 
string null $stderr
 
string $stdout
 

Detailed Description

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

Since
1.30

Definition at line 28 of file Result.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 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 54 of file Result.php.

References MediaWiki\Shell\Result\$exitCode.

◆ 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 73 of file Result.php.

References MediaWiki\Shell\Result\$stderr.

◆ getStdout()

MediaWiki\Shell\Result::getStdout ( )

Returns stdout of the process.

Returns
string

Definition at line 63 of file Result.php.

References MediaWiki\Shell\Result\$stdout.

Member Data Documentation

◆ $exitCode

int MediaWiki\Shell\Result::$exitCode
private

◆ $stderr

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

◆ $stdout

string MediaWiki\Shell\Result::$stdout
private

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