A PHP representation of the CQL tinyint datatype.

Implements

Methods

__construct

( mixed $value )

Creates a new 8-bit signed integer.

Parameters:
Name Type Details
$value int|double|string

The value as an integer, double or string

string

__toString

( )
Returns:
Type Details
string
Cassandra\Type

type

( )

The type of this value (tinyint).

Returns:
Type Details
Cassandra\Type
int

value

( )

Returns the integer value.

Returns:
Type Details
int

integer value

Parameters:
Name Type Details
$num Cassandra\Numeric

a number to add to this one

Returns:
Type Details
Cassandra\Numeric

sum

Parameters:
Name Type Details
$num Cassandra\Numeric

a number to subtract from this one

Returns:
Type Details
Cassandra\Numeric

difference

Parameters:
Name Type Details
$num Cassandra\Numeric

a number to multiply this one by

Returns:
Type Details
Cassandra\Numeric

product

Parameters:
Name Type Details
$num Cassandra\Numeric

a number to divide this one by

Returns:
Type Details
Cassandra\Numeric

quotient

Parameters:
Name Type Details
$num 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

static Cassandra\Tinyint

min

( )

Minimum possible Cassandra\Tinyint value

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

minimum value

static Cassandra\Tinyint

max

( )

Maximum possible Cassandra\Tinyint value

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

maximum value