PHP Class SH\Sh

Mostrar archivo Open project: gonzalo123/sh Class Usage Examples

Public Methods

Method Description
__call ( $name, $arguments )
__construct ( integer | null $timeout = self::DEFAULT_TIMEOUT )
factory ( $timeout = self::DEFAULT_TIMEOUT )
getTimeout ( )
runCommand ( string $name, null | string | array $comandArgument = null, null | Callable $lineCallback = null ) : null | string
setTimeout ( $timeout )

Private Methods

Method Description
getCommandToProcess ( $name, $comandArgument )

Method Details

__call() public method

public __call ( $name, $arguments )

__construct() public method

public __construct ( integer | null $timeout = self::DEFAULT_TIMEOUT )
$timeout integer | null

factory() public static method

public static factory ( $timeout = self::DEFAULT_TIMEOUT )

getTimeout() public method

public getTimeout ( )

runCommand() public method

public runCommand ( string $name, null | string | array $comandArgument = null, null | Callable $lineCallback = null ) : null | string
$name string
$comandArgument null | string | array
$lineCallback null | Callable
return null | string

setTimeout() public method

public setTimeout ( $timeout )