Cassandra\UserTypeIntegrationTest::insertAddress PHP Method

insertAddress() private method

Insert an address into the table.
private insertAddress ( UserTypeValue $address ) : Timeuuid
$address UserTypeValue User type to insert into the table
return Timeuuid Key used during insert
    private function insertAddress($address)
    {
        // Assign the values for the statement
        $key = new Timeuuid();
        $values = array($key, $address);
        // Insert the value into the table
        $query = "INSERT INTO {$this->tableNamePrefix}  (key, value) VALUES (?, ?)";
        $statement = new SimpleStatement($query);
        $options = new ExecutionOptions(array("arguments" => $values));
        $this->session->execute($statement, $options);
        // Return the key for asserting the user type
        return $key;
    }