PHP Class Cassandra\Varint

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 variable length integer.
__toString ( ) : string Returns the integer value.
abs ( ) : cassandra\Numeric
add ( cassandra\Numeric $addend ) : cassandra\Numeric
div ( cassandra\Numeric $divisor ) : cassandra\Numeric
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 varint.
value ( ) : string Returns the integer value.

Method Details

__construct() public méthode

Creates a new variable length integer.
public __construct ( string $value )
$value string integer value as a string

__toString() public méthode

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

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

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 varint.
public type ( ) : cassandra\Type
Résultat cassandra\Type

value() public méthode

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