php8.5
Home/ Manual/ reference / yar/ The Yar_Client class

The Yar_Client class

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.

Intro

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 synopsis

class Yar_Client { }

Properties

_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.

Yar-client

Source: reference/yar/yar-client.xml · from the official PHP manual (php/doc-en)