DnsEndPoint
extends EndPoint
in package
implements
Stringable
Table of Contents
Interfaces
- Stringable
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __toString() : string
- __unserialize() : void
- equals() : bool
- Checks whether the current object is equal to another.
- getHost() : string
- getPort() : int
- hasPort() : bool
- jsonSerialize() : mixed
- parse() : EndPoint
Methods
__construct()
public
__construct(string $host, int $port) : mixed
Parameters
- $host : string
- $port : int
__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|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
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.
getHost()
public
getHost() : string
Return values
stringgetPort()
public
getPort() : int
Return values
inthasPort()
public
hasPort() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : mixed
parse()
public
static parse(string $string) : EndPoint
Parameters
- $string : string