Cassandra\CollectionIntegrationTest::collectionWithCompositeTypes PHP Method

collectionWithCompositeTypes() public method

Data provider for lists with composite types
    public function collectionWithCompositeTypes()
    {
        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->compositeCassandraTypes());
    }