Index Documentation

IPAddress
in package
implements JsonSerializable, Stringable, IEquatable

FinalYes

Table of Contents

Interfaces

JsonSerializable
Stringable
IEquatable
Provides an interface for determining the value-equality of two objects.

Constants

UNKNOWN  = 0
V4  = 4
V6  = 6

Methods

__construct()  : mixed
__serialize()  : array<string|int, mixed>
__toString()  : string
__unserialize()  : void
equals()  : bool
Checks whether the current object is equal to another.
getAddress()  : string
getCleanAddress()  : string
getRaw()  : string
getVersion()  : int
getWidth()  : int
isV4()  : bool
isV6()  : bool
jsonSerialize()  : mixed
parse()  : self

Constants

Methods

__construct()

public __construct(string $raw) : mixed
Parameters
$raw : string

__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.

getAddress()

public getAddress() : string
Return values
string

getCleanAddress()

public getCleanAddress() : string
Return values
string

getRaw()

public getRaw() : string
Return values
string

getVersion()

public getVersion() : int
Return values
int

getWidth()

public getWidth() : int
Return values
int

isV4()

public isV4() : bool
Return values
bool

isV6()

public isV6() : bool
Return values
bool

jsonSerialize()

public jsonSerialize() : mixed

parse()

public static parse(string $address) : self
Parameters
$address : string
Return values
self

        
On this page

Search results