\App\NetworkModule\EntitiesIPv6Address

IPv6 address entity

Summary

Methods
Properties
Constants
__construct()
fromPrefix()
getAddress()
getPrefix()
getGateway()
toArray()
toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\NetworkModule\Entities\IPv6  address,   prefix, \App\NetworkModule\Entities\IPv6|null  gateway = null) : 

IPv6 address entity constructor

Parameters

\App\NetworkModule\Entities\IPv6 address

IPv6 address

prefix

IPv6 prefix

\App\NetworkModule\Entities\IPv6|null gateway

IPv6 gateway address

Returns

fromPrefix()

fromPrefix(  addr, string|null  gwAddr = null) : \App\NetworkModule\Entities\IPv6Address

Creates a new IPv6 address entity from the IPv6 address and prefix as a string

Parameters

addr

IPv6 address with prefix as a string

string|null gwAddr

IPv6 gateway address

Returns

\App\NetworkModule\Entities\IPv6Address —

IPv6 address entity

getAddress()

getAddress() : \App\NetworkModule\Entities\IPv6

Returns the IPv6 address

Returns

\App\NetworkModule\Entities\IPv6 —

IPv6 address

getPrefix()

getPrefix() : 

Returns the IPv6 prefix

Returns

IPv6 prefix

getGateway()

getGateway() : \App\NetworkModule\Entities\IPv6|null

Returns the IPv6 gateway prefix

Returns

\App\NetworkModule\Entities\IPv6|null —

IPv6 gateway address

toArray()

toArray() : mixed|string|string|int

Converts the IPv6 address entity to an array

Returns

mixed|string|string|int —

IPv6 address entity in the array

toString()

toString() : 

Converts the IPv6 address entity to a string

Returns

IPv6 address and prefix