Command
in package
implements
ICommand
Read onlyYes
FinalYes
Command entity stub
Table of Contents
Interfaces
- ICommand
- Interface for command entities
Properties
Methods
- __construct() : mixed
- Constructor
- getCommand() : string
- Returns the command
- getExitCode() : int|null
- Returns the exit code
- getStderr() : string
- Returns the standard error output
- getStdout() : string
- Returns the standard output
Properties
$command
private
string
$command
$exitCode
private
int|null
$exitCode
$stderr
private
string
$stderr
$stdout
private
string
$stdout
Methods
__construct()
Constructor
public
__construct(string $command, string $stdout, string $stderr, int|null $exitCode) : mixed
Parameters
- $command : string
-
Command
- $stdout : string
-
Standard output
- $stderr : string
-
Standard error output
- $exitCode : int|null
-
Exit code
getCommand()
Returns the command
public
getCommand() : string
Return values
string —Command
getExitCode()
Returns the exit code
public
getExitCode() : int|null
Return values
int|null —Exit code
getStderr()
Returns the standard error output
public
getStderr() : string
Return values
string —Standard error output
getStdout()
Returns the standard output
public
getStdout() : string
Return values
string —Standard output