class UserType
A class that represents a user type. The user type is able to represent a composite type of one or more types accessed by name.
Extends
Methods
null
withName
(string
$name )
Associate the user type with a name.
string
name
( )Returns type name for the user type
null
withKeyspace
(string
$keyspace )
Associate the user type with a keyspace.
string
keyspace
( )Returns keyspace for the user type
string
__toString
( )Returns type representation in CQL, e.g. keyspace1.type_name1 or userType<name1:varchar, name2:int>
.
array
types
( )Returns types of values
Creates a new Dse\UserTypeValue
from the given name/value pairs. When no values given, creates an empty user type.