はじめに
PHP Manual
PHP Manual»Yar»Yar_Client

The Yar_Client class

(No version information available, might only be in Git)

The client side of the Yar RPC framework. A client is bound to a single service address; invoking any undefined method on it issues a remote call with that method name and the given arguments.

class Yar_Client {
/* プロパティ */
protected int $_protocol;
protected string $_uri;
protected ?array $_options;
protected bool $_running;
/* メソッド */
final public function __construct(string $uri, ?array $options = null)
public function call(string $method, array $arguments): mixed
public function getOpt(int $name): mixed
public function setOpt(int $name, mixed $value): Yar_Client|bool
}
_protocol

Read-only. The protocol derived from the service address: one of YAR_CLIENT_PROTOCOL_HTTP, YAR_CLIENT_PROTOCOL_TCP or YAR_CLIENT_PROTOCOL_UNIX.

_uri

Read-only. The service address the client was created with.

_options

Read-only. An array of the options set on this client, keyed by the YAR_OPT_* constants, or null if none were set.

_running

Read-only. Whether a call issued by this client is currently in progress.

目次

To Top