Cassandra\UserTypeIntegrationTest::insertAddress PHP Méthode

insertAddress() private méthode

Insert an address into the table.
private insertAddress ( UserTypeValue $address ) : Timeuuid
$address UserTypeValue User type to insert into the table
Résultat 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;
    }