UserTypeValue
final class UserTypeValue implements Value, Countable, Iterator (View source)
A PHP representation of the CQL UDT datatype
Methods
Creates a new user type value with the given name/type pairs.
Array of values in this user type value.
Sets the value at name in this user type value.
Retrieves the value at a given name.
Total number of elements in this user type value.
Current element for iteration
Current key for iteration
Move internal iterator forward
Check whether a current value exists
Rewind internal iterator
Details
__construct(array $types)
Creates a new user type value with the given name/type pairs.
Type
type()
The type of this user type value.
array
values()
Array of values in this user type value.
void
set(mixed $value)
Sets the value at name in this user type value.
mixed
get(string $name)
Retrieves the value at a given name.
int
count()
Total number of elements in this user type value.
mixed
current()
Current element for iteration
mixed
key()
Current key for iteration
void
next()
Move internal iterator forward
bool
valid()
Check whether a current value exists
void
rewind()
Rewind internal iterator