PHP 클래스 Cassandra\UserTypeValue

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

공개 메소드들

메소드 설명
__construct ( array $types ) Creates a new user type value with the given name/type pairs.
count ( ) : integer Total number of elements in this user type value.
current ( ) : mixed Current element for iteration
get ( sting $name ) : mixed Retrieves the value at a given name.
key ( ) : integer Current key for iteration
next ( ) : void Move internal iterator forward
rewind ( ) : void Rewind internal iterator
set ( sting $name, mixed $value ) : void Sets the value at name in this user type value.
type ( ) : cassandra\Type The type of this user type value.
valid ( ) : boolean Check whether a current value exists
values ( ) : array Array of values in this user type value.

메소드 상세

__construct() 공개 메소드

Creates a new user type value with the given name/type pairs.
public __construct ( array $types )
$types array Array of types

count() 공개 메소드

Total number of elements in this user type value.
public count ( ) : integer
리턴 integer count

current() 공개 메소드

Current element for iteration
public current ( ) : mixed
리턴 mixed current element

get() 공개 메소드

Retrieves the value at a given name.
public get ( sting $name ) : mixed
$name sting String of the field name
리턴 mixed Value or null

key() 공개 메소드

Current key for iteration
public key ( ) : integer
리턴 integer current key

next() 공개 메소드

Move internal iterator forward
public next ( ) : void
리턴 void

rewind() 공개 메소드

Rewind internal iterator
public rewind ( ) : void
리턴 void

set() 공개 메소드

Sets the value at name in this user type value.
public set ( sting $name, mixed $value ) : void
$name sting String of the field name
$value mixed Value or null
리턴 void

type() 공개 메소드

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

valid() 공개 메소드

Check whether a current value exists
public valid ( ) : boolean
리턴 boolean

values() 공개 메소드

Array of values in this user type value.
public values ( ) : array
리턴 array values