final class Tinyint implements Value, Numeric (View source)

A PHP representation of the CQL tinyint datatype.

Methods

__construct(int|float|string $value)

Creates a new 8-bit signed integer.

static Tinyint
min()

Minimum possible Tinyint value

static Tinyint
max()

Maximum possible Tinyint value

string
__toString()

No description

type()

The type of this value (tinyint).

int
value()

Returns the integer value.

add(Numeric $num)

No description

sub(Numeric $num)

No description

mul(Numeric $num)

No description

div(Numeric $num)

No description

mod(Numeric $num)

No description

abs()

No description

neg()

No description

sqrt()

No description

int
toInt()

No description

float
toDouble()

No description

Details

__construct(int|float|string $value)

Creates a new 8-bit signed integer.

Parameters

int|float|string $value

The value as an integer, float or string

static Tinyint min()

Minimum possible Tinyint value

Return Value

Tinyint

minimum value

static Tinyint max()

Maximum possible Tinyint value

Return Value

Tinyint

maximum value

string __toString()

No description

Return Value

string

Type type()

The type of this value (tinyint).

Return Value

Type

int value()

Returns the integer value.

Return Value

int

integer value

Numeric add(Numeric $num)

No description

Parameters

Numeric $num

a number to add to this one

Return Value

Numeric sum

Numeric sub(Numeric $num)

No description

Parameters

Numeric $num

a number to subtract from this one

Return Value

Numeric difference

Numeric mul(Numeric $num)

No description

Parameters

Numeric $num

a number to multiply this one by

Return Value

Numeric product

Numeric div(Numeric $num)

No description

Parameters

Numeric $num

a number to divide this one by

Return Value

Numeric quotient

Numeric mod(Numeric $num)

No description

Parameters

Numeric $num

a number to divide this one by

Return Value

Numeric remainder

Numeric abs()

No description

Return Value

Numeric

absolute value

Numeric neg()

No description

Return Value

Numeric

negative value

Numeric sqrt()

No description

Return Value

Numeric

square root

int toInt()

No description

Return Value

int

this number as int

float toDouble()

No description

Return Value

float

this number as float