Index Documentation

EndPoint
in package
implements JsonSerializable, Stringable, IEquatable

AbstractYes

Represents a generic network end point.

Table of Contents

Interfaces

JsonSerializable
Stringable
IEquatable
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
string

equals()

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
throws
InvalidArgumentException

If $string does not contain a valid end point string.

Return values
EndPoint

Representation of the given string.


        
On this page

Search results