FdCollector
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.
at line 28
static string|null
get(int $id, string|null $default = null)
Get the handler class for the given file descriptor.
at line 36
static bool
has(int $id)
Determine if a file descriptor is registered.
at line 44
static void
del(int $id)
Remove a file descriptor from the collector.
at line 54
static array
list()
Get all registered file descriptors.
at line 62
static void
flushState()
Flush all static state.