UnixEndPoint
extends EndPoint
in package
Represents a UNIX socket path end point.
Table of Contents
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __toString() : string
- __unserialize() : void
- equals() : bool
- Checks whether the current object is equal to another.
- getPath() : string
- Gets path to the socket file.
- jsonSerialize() : mixed
- parse() : UnixEndPoint
- Attempts to parse a string into an UNIX end point.
Methods
__construct()
public
__construct(string $socketPath) : mixed
Parameters
- $socketPath : string
-
Path to the socket file.
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__toString()
public
__toString() : string
Return values
string__unserialize()
public
__unserialize(array{: string} $serialized) : void
Parameters
- $serialized : array{: string}
equals()
Checks whether the current object is equal to another.
public
equals(mixed $other) : bool
Parameters
- $other : mixed
Return values
bool —true if the objects are equals, false if not.
getPath()
Gets path to the socket file.
public
getPath() : string
Return values
string —Path to the socket file.
jsonSerialize()
public
jsonSerialize() : mixed
parse()
Attempts to parse a string into an UNIX end point.
public
static parse(string $string) : UnixEndPoint
Parameters
- $string : string
-
String to parse.
Return values
UnixEndPoint —Representation of the given string.