PHP Interface Fxmlrpc\MulticallBuilder

Author: Lars Strojny ([email protected])
Datei anzeigen Open project: lstrojny/fxmlrpc

Public Methods

Method Description
__construct ( fxmlrpc\ClientInterface $client )
addCall ( $methodName, array $params = [], callable $onSuccess = null, callable $onError = null )
execute ( )
getClient ( ) : fxmlrpc\ClientInterface
onError ( callable $onError )
onSuccess ( callable $onSuccess )

Protected Methods

Method Description
invokeHandler ( callable | null $onSuccess, callable | null $onError, boolean $isError, mixed $result )
processResult ( array $handler, mixed $result )

Method Details

__construct() public method

public __construct ( fxmlrpc\ClientInterface $client )
$client fxmlrpc\ClientInterface

addCall() public method

public addCall ( $methodName, array $params = [], callable $onSuccess = null, callable $onError = null )
$params array
$onSuccess callable
$onError callable

execute() public method

public execute ( )

getClient() public method

public getClient ( ) : fxmlrpc\ClientInterface
return fxmlrpc\ClientInterface

invokeHandler() protected method

protected invokeHandler ( callable | null $onSuccess, callable | null $onError, boolean $isError, mixed $result )
$onSuccess callable | null
$onError callable | null
$isError boolean
$result mixed

onError() public method

public onError ( callable $onError )
$onError callable

onSuccess() public method

public onSuccess ( callable $onSuccess )
$onSuccess callable

processResult() protected method

protected processResult ( array $handler, mixed $result )
$handler array
$result mixed