Documentation

JsonRpc extends BaseAdapter
in package

Remote Object JSON RPC adapter

Table of Contents

Properties

$client  : mixed
$map  : array<string, string>
Service name mapping

Methods

__construct()  : mixed
Constructor
call()  : mixed
Call remote object
getServiceName()  : string
Get the service name will be used by the adapter

Properties

$map

Service name mapping

protected array<string, string> $map = []

Methods

__construct()

Constructor

public __construct(Client $client[, array<string, string> $map = [] ]) : mixed
Parameters
$client : Client
$map : array<string, string> = []

map of service names to their aliases

call()

Call remote object

public call(string $wrappedClass, string $method[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
$wrappedClass : string
$method : string
$params : array<string|int, mixed> = []

Due to BC compliance, we cannot add a native : mixed return type declaration here

phpcs:disable SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint

getServiceName()

Get the service name will be used by the adapter

protected getServiceName(string $wrappedClass, string $method) : string
Parameters
$wrappedClass : string
$method : string
Return values
string

        
On this page

Search results