A PHP representation of the CQL bigint datatype

Implements

Methods

static Cassandra\Bigint

min

( )

Minimum possible Cassandra\Bigint value

Static
This method is static
Returns:
Type Details
Cassandra\Bigint

minimum value

static Cassandra\Bigint

max

( )

Maximim possible Cassandra\Bigint value

Static
This method is static
Returns:
Type Details
Cassandra\Bigint

maximum value

__construct

( string $value )

Creates a new 64bit integer.

Parameters:
Name Type Details
$value string

integer value as a string

string

value

( )

Returns the integer value.

Returns:
Type Details
string

integer value

string

__toString

( )

Returns string representation of the integer value.

Returns:
Type Details
string

integer value

Parameters:
Name Type Details
$addend Cassandra\Numeric

a number to add to this one

Returns:
Type Details
Cassandra\Numeric

sum

Cassandra\Numeric

sub

( Cassandra\Numeric $subtrahend )
Parameters:
Name Type Details
$subtrahend Cassandra\Numeric

a number to subtract from this one

Returns:
Type Details
Cassandra\Numeric

difference

Cassandra\Numeric

mul

( Cassandra\Numeric $multiplier )
Parameters:
Name Type Details
$multiplier Cassandra\Numeric

a number to multiply this one by

Returns:
Type Details
Cassandra\Numeric

product

Parameters:
Name Type Details
$divisor Cassandra\Numeric

a number to divide this one by

Returns:
Type Details
Cassandra\Numeric

quotient

Parameters:
Name Type Details
$divisor Cassandra\Numeric

a number to divide this one by

Returns:
Type Details
Cassandra\Numeric

remainder

Returns:
Type Details
Cassandra\Numeric

absolute value

Returns:
Type Details
Cassandra\Numeric

negative value

Returns:
Type Details
Cassandra\Numeric

square root

int

toInt

( )
Returns:
Type Details
int

this number as int

float

toDouble

( )
Returns:
Type Details
float

this number as float