IQRF PHP command executor

Command
in package
implements ICommand

Command entity

Table of Contents

Interfaces

ICommand
Interface for command entities

Properties

$exitCode  : int|null
$stderr  : string
$stdout  : string
$command  : string

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

$exitCode read-only

public int|null $exitCode

Exit code

$stderr read-only

public string $stderr

Standard error output

$stdout read-only

public string $stdout

Standard output

$command read-only

private string $command

Methods

__construct()

Constructor

public __construct(string $command, Process $process) : mixed
Parameters
$command : string

Command

$process : Process

Process

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


        
On this page

Search results