final class Inet implements Value (View source)

A PHP representation of the CQL inet datatype

Methods

__construct(string $address)

Creates a new IPv4 or IPv6 inet address.

string
__toString()

Returns the normalized string representation of the address.

type()

The type of this inet.

string
address()

Returns the normalized string representation of the address.

Details

__construct(string $address)

Creates a new IPv4 or IPv6 inet address.

Parameters

string $address

any IPv4 or IPv6 address

string __toString()

Returns the normalized string representation of the address.

Return Value

string address

Type type()

The type of this inet.

Return Value

Type

string address()

Returns the normalized string representation of the address.

Return Value

string address