class Methods (View source)

RPC methods manager

Methods

__construct(LoggerInterface $logger)

Class constructor

bool
add(RpcMethod $method)

Add an RPC method

bool
delete(string $name)

Delete a method

array|RpcMethod|null
get(string $method = null)

Get registered method(s)

Details

__construct(LoggerInterface $logger)

Class constructor

Parameters

LoggerInterface $logger

final bool add(RpcMethod $method)

Add an RPC method

Parameters

RpcMethod $method

Return Value

bool

final bool delete(string $name)

Delete a method

Parameters

string $name

Return Value

bool

final array|RpcMethod|null get(string $method = null)

Get registered method(s)

Parameters

string $method

Return Value

array|RpcMethod|null