Cassandra\TimestampIntegrationTest::getTimestamp PHP Method

getTimestamp() private method

Get the write time for a given key in the table.
private getTimestamp ( $key ) : integer
$key Key to determine `value_int` write time
return integer Write time for `value_int` in microseconds
    private function getTimestamp($key)
    {
        // Select the timestamp from the table
        $statement = new SimpleStatement($this->selectQuery);
        $options = new ExecutionOptions(array("arguments" => array("key" => $key)));
        $rows = $this->session->execute($statement, $options);
        $row = $rows->first();
        $this->assertArrayHasKey("writetime(value_int)", $row);
        // Return the timestamp
        return current($row)->value();
    }