PHP Class Cassandra\Inet

Inheritance: implements cassandra\Value
Show file Open project: datastax/php-driver

Public Methods

Method Description
__construct ( string $address ) Creates a new IPv4 or IPv6 inet address.
__toString ( ) : string Returns the normalized string representation of the address.
address ( ) : string Returns the normalized string representation of the address.
type ( ) : cassandra\Type The type of this inet.

Method Details

__construct() public method

Creates a new IPv4 or IPv6 inet address.
public __construct ( string $address )
$address string any IPv4 or IPv6 address

__toString() public method

Returns the normalized string representation of the address.
public __toString ( ) : string
return string address

address() public method

Returns the normalized string representation of the address.
public address ( ) : string
return string address

type() public method

The type of this inet.
public type ( ) : cassandra\Type
return cassandra\Type