EndPoint
in package
implements
JsonSerializable, Stringable, Equatable
AbstractYes
Represents a generic network end point.
Table of Contents
Interfaces
- JsonSerializable
- Stringable
- Equatable
- Provides an interface for determining the value-equality of two objects.
Methods
- __toString() : string
- equals() : bool
- Checks whether the current object is equal to another.
- jsonSerialize() : mixed
- parse() : EndPoint
- Attempts to parse a string into a known end point object.
Methods
__toString()
public
abstract __toString() : string
Return values
stringequals()
Checks whether the current object is equal to another.
public
abstract equals(mixed $other) : bool
Parameters
- $other : mixed
Return values
bool —true if the objects are equals, false if not.
jsonSerialize()
public
jsonSerialize() : mixed
parse()
Attempts to parse a string into a known end point object.
public
static parse(string $string) : EndPoint
Parameters
- $string : string
-
String to parse.
Tags
Return values
EndPoint —Representation of the given string.