PHP 클래스 Cassandra\Tinyint

상속: implements cassandra\Value, implements cassandra\Numeric
파일 보기 프로젝트 열기: datastax/php-driver

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

abs() 공개 메소드

public abs ( ) : cassandra\Numeric
리턴 cassandra\Numeric absolute value

add() 공개 메소드

public add ( cassandra\Numeric $addend ) : cassandra\Numeric
$addend cassandra\Numeric a number to add to this one
리턴 cassandra\Numeric sum

div() 공개 메소드

public div ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
리턴 cassandra\Numeric quotient

max() 공개 정적인 메소드

Maximum possible Tinyint value
public static max ( ) : Tinyint
리턴 Tinyint maximum value

min() 공개 정적인 메소드

Minimum possible Tinyint value
public static min ( ) : Tinyint
리턴 Tinyint minimum value

mod() 공개 메소드

public mod ( cassandra\Numeric $divisor ) : cassandra\Numeric
$divisor cassandra\Numeric a number to divide this one by
리턴 cassandra\Numeric remainder

mul() 공개 메소드

public mul ( cassandra\Numeric $multiplier ) : cassandra\Numeric
$multiplier cassandra\Numeric a number to multiply this one by
리턴 cassandra\Numeric product

neg() 공개 메소드

public neg ( ) : cassandra\Numeric
리턴 cassandra\Numeric negative value

sqrt() 공개 메소드

public sqrt ( ) : cassandra\Numeric
리턴 cassandra\Numeric square root

sub() 공개 메소드

public sub ( cassandra\Numeric $subtrahend ) : cassandra\Numeric
$subtrahend cassandra\Numeric a number to subtract from this one
리턴 cassandra\Numeric difference

toDouble() 공개 메소드

public toDouble ( ) : float
리턴 float this number as float

toInt() 공개 메소드

public toInt ( ) : integer
리턴 integer this number as int

type() 공개 메소드

The type of this value (tinyint).
public type ( ) : cassandra\Type
리턴 cassandra\Type

value() 공개 메소드

Returns the integer value.
public value ( ) : integer
리턴 integer integer value