class Map
Extends
Methods
string name
( )Returns “map”
string __toString
( )Returns type representation in CQL, e.g. map<varchar, int>
Cassandra\Type keyType
( )Returns type of keys
Cassandra\Type valueType
( )Returns type of values
Creates a new Cassandra\Map from the given values.
<?php
use Cassandra\Type;
use Cassandra\Uuid;
$type = Type::map(Type::uuid(), Type::varchar());
$map = $type->create(new Uuid(), 'first uuid',
new Uuid(), 'second uuid',
new Uuid(), 'third uuid');
var_dump($map);
