Yet Another RPC Framework

目次

The Yar_Server class

はじめに

クラス概要

Yar_Server
class Yar_Server {
/* プロパティ */
protected $_executor;
/* メソッド */
final public __construct(Object $obj)
public bool handle()
}

プロパティ

_executor

The Yar_Client class

はじめに

クラス概要

Yar_Client
class Yar_Client {
/* プロパティ */
protected $_protocol;
protected $_uri;
protected $_options;
protected $_running;
/* メソッド */
public void __call(string $method, array $parameters)
final public __construct(string $url, array $options = ?)
public Yar_Clientfalse setOpt(int $name, mixed $value)
}

プロパティ

_protocol

_uri

_options

_running

The Yar_Concurrent_Client class

はじめに

クラス概要

Yar_Concurrent_Client
class Yar_Concurrent_Client {
/* プロパティ */
static $_callstack;
static $_callback;
static $_error_callback;
/* メソッド */
public static int call(
    string $uri,
    string $method,
    array $parameters = ?,
    callable $callback = ?,
    callable $error_callback = ?,
    array $options = ?
)
public static bool loop(callable $callback = ?, callable $error_callback = ?)
public static bool reset()
}

プロパティ

_callstack

_callback

_error_callback

The Yar_Server_Exception class

はじめに

If service threw exceptions, A Yar_Server_Exception will be threw in client side.

クラス概要

Yar_Server_Exception
class Yar_Server_Exception extends Exception {
/* プロパティ */
protected $_type;
/* メソッド */
public string getType()
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}

プロパティ

message

code

file

line

_type

The Yar_Client_Exception class

はじめに

クラス概要

Yar_Client_Exception
class Yar_Client_Exception extends Exception {
/* プロパティ */
/* メソッド */
public string getType()
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}

プロパティ

message

code

file

line