Cassandra\UserTypeIntegrationTest::userTypeWithScalarTypes PHP Method

userTypeWithScalarTypes() public method

Data provider for user types with scalar types
    public function userTypeWithScalarTypes()
    {
        $result = array_map(function ($cassandraType) {
            $userType = Type::userType("a", $cassandraType[0]);
            $userType = $userType->withName(self::userTypeString($userType));
            $user = $userType->create();
            $user->set("a", $cassandraType[1][0]);
            return array($userType, $user);
        }, $this->scalarCassandraTypes());
        return $result;
    }