Cassandra\UserTypeIntegrationTest::selectAddress PHP Метод

selectAddress() приватный Метод

Select the address from the table.
private selectAddress ( Timeuuid $key ) : UserTypeValue
$key Timeuuid Key to use to select user type value
Результат UserTypeValue User type retrieved from the server
    private function selectAddress($key)
    {
        // Select the user type
        $query = "SELECT value FROM {$this->tableNamePrefix}  WHERE key=?";
        $statement = new SimpleStatement($query);
        $options = new ExecutionOptions(array("arguments" => array($key)));
        $rows = $this->session->execute($statement, $options);
        // Ensure the user type is valid
        $this->assertCount(1, $rows);
        $row = $rows->first();
        $this->assertNotNull($row);
        $this->assertArrayHasKey("value", $row);
        $userType = $row["value"];
        $this->assertInstanceOf('Cassandra\\UserTypeValue', $userType);
        // Return the user type
        return $userType;
    }