class FdCollector

Properties

static protected array<int, class-string> $fds

Methods

static void
set(int $id, string $class)

Register a file descriptor with its handler class.

static string|null
get(int $id, string|null $default = null)

Get the handler class for the given file descriptor.

static bool
has(int $id)

Determine if a file descriptor is registered.

static void
del(int $id)

Remove a file descriptor from the collector.

static array
list()

Get all registered file descriptors.

static void
flushState()

Flush all static state.

Details

at line 17
static void set(int $id, string $class)

Register a file descriptor with its handler class.

Parameters

int $id
string $class

Return Value

void

at line 28
static string|null get(int $id, string|null $default = null)

Get the handler class for the given file descriptor.

Parameters

int $id
string|null $default

Return Value

string|null

at line 36
static bool has(int $id)

Determine if a file descriptor is registered.

Parameters

int $id

Return Value

bool

at line 44
static void del(int $id)

Remove a file descriptor from the collector.

Parameters

int $id

Return Value

void

at line 54
static array list()

Get all registered file descriptors.

Return Value

array

at line 62
static void flushState()

Flush all static state.

Return Value

void