PHP Interface Clinner\Command\CommandInterface

Author: José Nahuel Cuesta Luengo ([email protected])
Show file Open project: ncuesta/clinner

Public Methods

Method Description
getErrorOutput ( ) : string Get the output for this command's execution.
getExitCode ( ) : integer Get the exit code for this command's execution.
getOutput ( ) : string Get the output for this command's execution.
run ( string $input = null ) : Clinner\Command\CommandInterface Run this command and get the exit code for it.
toCommandString ( ) : string Get a string representing this command.

Method Details

getErrorOutput() public method

This method will only return a valid value after the command has been executed.
public getErrorOutput ( ) : string
return string

getExitCode() public method

This method will only return a valid value after the command has been executed.
public getExitCode ( ) : integer
return integer

getOutput() public method

This method will only return a valid value after the command has been executed.
public getOutput ( ) : string
return string

run() public method

Run this command and get the exit code for it.
public run ( string $input = null ) : Clinner\Command\CommandInterface
$input string (Optional) input string for this command.
return Clinner\Command\CommandInterface This command, for a fluent API.

toCommandString() public method

Get a string representing this command.
public toCommandString ( ) : string
return string