PHP Class Cassandra\Tinyint

Inheritance: implements cassandra\Value, implements cassandra\Numeric
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode 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 méthode

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

abs() public méthode

public abs ( ) : cassandra\Numeric
Résultat cassandra\Numeric absolute value

add() public méthode

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

div() public méthode

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

max() public static méthode

Maximum possible Tinyint value
public static max ( ) : Tinyint
Résultat Tinyint maximum value

min() public static méthode

Minimum possible Tinyint value
public static min ( ) : Tinyint
Résultat Tinyint minimum value

mod() public méthode

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

mul() public méthode

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

neg() public méthode

public neg ( ) : cassandra\Numeric
Résultat cassandra\Numeric negative value

sqrt() public méthode

public sqrt ( ) : cassandra\Numeric
Résultat cassandra\Numeric square root

sub() public méthode

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

toDouble() public méthode

public toDouble ( ) : float
Résultat float this number as float

toInt() public méthode

public toInt ( ) : integer
Résultat integer this number as int

type() public méthode

The type of this value (tinyint).
public type ( ) : cassandra\Type
Résultat cassandra\Type

value() public méthode

Returns the integer value.
public value ( ) : integer
Résultat integer integer value