PHP Class PHPPM\Client

Inheritance: use trait ProcessCommunicationTrait
Show file Open project: php-pm/php-pm Class Usage Examples

Protected Properties

Property Type Description
$connection React\Socket\Connection
$controllerPort integer
$loop React\EventLoop\LoopInterface

Public Methods

Method Description
__construct ( $controllerPort = 5500 )
getStatus ( callable $callback )

Protected Methods

Method Description
getConnection ( ) : Connection
getControllerSocket ( ) : string
request ( $command, $options, $callback )

Method Details

__construct() public method

public __construct ( $controllerPort = 5500 )

getConnection() protected method

protected getConnection ( ) : Connection
return React\Socket\Connection

getControllerSocket() protected method

protected getControllerSocket ( ) : string
return string

getStatus() public method

public getStatus ( callable $callback )
$callback callable

request() protected method

protected request ( $command, $options, $callback )

Property Details

$connection protected property

protected Connection,React\Socket $connection
return React\Socket\Connection

$controllerPort protected property

protected int $controllerPort
return integer

$loop protected property

protected LoopInterface,React\EventLoop $loop
return React\EventLoop\LoopInterface