IPAddressRange
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.
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __toString() : string
- __unserialize() : void
- equals() : bool
- Checks whether the current object is equal to another.
- getBaseAddress() : IPAddress
- getCIDR() : string
- getMask() : int
- jsonSerialize() : mixed
- match() : bool
- parse() : IPAddressRange
Methods
__construct()
public
__construct(IPAddress $base, int $mask) : mixed
Parameters
- $base : IPAddress
- $mask : 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.
getBaseAddress()
public
getBaseAddress() : IPAddress
Return values
IPAddressgetCIDR()
public
getCIDR() : string
Return values
stringgetMask()
public
getMask() : int
Return values
intjsonSerialize()
public
jsonSerialize() : mixed
match()
public
match(IPAddress $address) : bool
Parameters
- $address : IPAddress
Return values
boolparse()
public
static parse(string $cidr) : IPAddressRange
Parameters
- $cidr : string