PHP Class PHPPM\Client

Inheritance: use trait ProcessCommunicationTrait
ファイルを表示 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_oe property

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

$controllerPort protected_oe property

protected int $controllerPort
return integer

$loop protected_oe property

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