MediaWiki  1.30.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)
 
 getExitCode ()
 Returns exit code of the process. More...
 
 getStdout ()
 Returns stdout of the process. More...
 

Private Attributes

int $exitCode
 
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 
)
Parameters
int$exitCode
string$stdout

Definition at line 39 of file Result.php.

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

Member Function Documentation

◆ getExitCode()

MediaWiki\Shell\Result::getExitCode ( )

Returns exit code of the process.

Returns
int

Definition at line 49 of file Result.php.

References MediaWiki\Shell\Result\$exitCode.

◆ getStdout()

MediaWiki\Shell\Result::getStdout ( )

Returns stdout of the process.

Returns
string

Definition at line 58 of file Result.php.

References MediaWiki\Shell\Result\$stdout.

Member Data Documentation

◆ $exitCode

int MediaWiki\Shell\Result::$exitCode
private

◆ $stdout

string MediaWiki\Shell\Result::$stdout
private

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