Cassandra\CollectionIntegrationTest::collectionWithNestedTypes PHP Method

collectionWithNestedTypes() public method

Data provider for lists with nested composite types
    public function collectionWithNestedTypes()
    {
        return array_map(function ($cassandraType) {
            $listType = Type::collection($cassandraType[0]);
            $list = $listType->create();
            foreach ($cassandraType[1] as $value) {
                $list->add($value);
            }
            return array($listType, $list);
        }, $this->nestedCassandraTypes());
    }