PHP Interface Fxmlrpc\MulticallBuilder

Author: Lars Strojny ([email protected])
Afficher le fichier Open project: lstrojny/fxmlrpc

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Method Details

__construct() public méthode

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

addCall() public méthode

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

execute() public méthode

public execute ( )

getClient() public méthode

public getClient ( ) : fxmlrpc\ClientInterface
Résultat fxmlrpc\ClientInterface

invokeHandler() protected méthode

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

onError() public méthode

public onError ( callable $onError )
$onError callable

onSuccess() public méthode

public onSuccess ( callable $onSuccess )
$onSuccess callable

processResult() protected méthode

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