PHP Class Cassandra\Tinyint

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

Public Methods

Method Description
__construct ( string $value ) Creates a new 8bit integer.
abs ( ) : cassandra\Numeric
add ( cassandra\Numeric $addend ) : cassandra\Numeric
div ( cassandra\Numeric $divisor ) : cassandra\Numeric
max ( ) : Tinyint Maximum possible Tinyint value
min ( ) : Tinyint Minimum possible Tinyint 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 value (tinyint).
value ( ) : integer Returns the integer value.

Method Details

__construct() public method

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

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 Tinyint value
public static max ( ) : Tinyint
return Tinyint maximum value

min() public static method

Minimum possible Tinyint value
public static min ( ) : Tinyint
return Tinyint 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 value (tinyint).
public type ( ) : cassandra\Type
return cassandra\Type

value() public method

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