PHP Class Cassandra\Bigint

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

Public Methods

Method Description
__construct ( string $value ) Creates a new 64bit integer.
__toString ( ) : string Returns string representation of the integer value.
abs ( ) : cassandra\Numeric
add ( cassandra\Numeric $addend ) : cassandra\Numeric
div ( cassandra\Numeric $divisor ) : cassandra\Numeric
max ( ) : Bigint Maximum possible Bigint value
min ( ) : Bigint Minimum possible Bigint value
mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
neg ( ) : cassandra\Numeric
sqrt ( ) : cassandra\Numeric
sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
toDouble ( ) : float
toInt ( ) : integer
type ( ) : cassandra\Type The type of this bigint.
value ( ) : string Returns the integer value.

Method Details

__construct() public method

Creates a new 64bit integer.
public __construct ( string $value )
$value string integer value as a string

__toString() public method

Returns string representation of the integer value.
public __toString ( ) : string
return string integer value

abs() public method

public abs ( ) : cassandra\Numeric
return cassandra\Numeric absolute value

add() public method

public add ( cassandra\Numeric $addend ) : cassandra\Numeric
$addend cassandra\Numeric a number to add to this one
return cassandra\Numeric sum

div() public method

public div ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
return cassandra\Numeric quotient

max() public static method

Maximum possible Bigint value
public static max ( ) : Bigint
return Bigint maximum value

min() public static method

Minimum possible Bigint value
public static min ( ) : Bigint
return Bigint minimum value

mod() public method

public mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
return cassandra\Numeric remainder

mul() public method

public mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
$multiplier cassandra\Numeric a number to multiply this one by
return cassandra\Numeric product

neg() public method

public neg ( ) : cassandra\Numeric
return cassandra\Numeric negative value

sqrt() public method

public sqrt ( ) : cassandra\Numeric
return cassandra\Numeric square root

sub() public method

public sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
$subtrahend cassandra\Numeric a number to subtract from this one
return cassandra\Numeric difference

toDouble() public method

public toDouble ( ) : float
return float this number as float

toInt() public method

public toInt ( ) : integer
return integer this number as int

type() public method

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

value() public method

Returns the integer value.
public value ( ) : string
return string integer value