# LazyCollection

The LazyCollection class is a variant of the CMS Collection that is only initialized with keys for each collection element or without any data. Collection elements and their values (= objects) are loaded and initialized lazily when they are first used.

****

- Full class name: `Kirby\Cms\LazyCollection`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Cms/LazyCollection.php#L35>

****

### LazyCollection

- [$lazyCollection->__call()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__call.md)
- [new LazyCollection()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__construct.md)
- [$lazyCollection->__debugInfo()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__debug-info.md)
- [$lazyCollection->__get()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__get.md)
- [$lazyCollection->__isset()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__isset.md)
- [$lazyCollection->__set()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__set.md)
- [$lazyCollection->__toString()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__to-string.md)
- [$lazyCollection->__unset()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/__unset.md)
- [$lazyCollection->add()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/add.md)
- [$lazyCollection->append()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/append.md)
- [$lazyCollection->chunk()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/chunk.md)
- [$lazyCollection->clone()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/clone.md)
- [$lazyCollection->count()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/count.md)
- [$lazyCollection->current()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/current.md)
- [$lazyCollection->data()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/data.md)
- [$lazyCollection->empty()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/empty.md)
- [$lazyCollection->extend()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/extend.md)
- [$lazyCollection->filter()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/filter.md)
- [$lazyCollection->filterBy()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/filter-by.md)
- [$lazyCollection->find()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/find.md)
- [$lazyCollection->findBy()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/find-by.md)
- [$lazyCollection->findByKey()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/find-by-key.md)
- [$lazyCollection->first()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/first.md)
- [$lazyCollection->flip()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/flip.md)
- [$lazyCollection->get()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/get.md)
- [$lazyCollection->getAttribute()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/get-attribute.md)
- [$lazyCollection->getIterator()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/get-iterator.md)
- [$lazyCollection->getMethod()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/get-method.md)
- [$lazyCollection->group()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/group.md)
- [$lazyCollection->groupBy()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/group-by.md)
- [$lazyCollection->has()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/has.md)
- [$lazyCollection->hasMethod()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/has-method.md)
- [$lazyCollection->hydrate()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/hydrate.md)
- [$lazyCollection->indexOf()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/index-of.md)
- [$lazyCollection->initialize()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/initialize.md)
- [$lazyCollection->intersection()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/intersection.md)
- [$lazyCollection->intersects()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/intersects.md)
- [$lazyCollection->isEmpty()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/is-empty.md)
- [$lazyCollection->isEven()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/is-even.md)
- [$lazyCollection->isNotEmpty()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/is-not-empty.md)
- [$lazyCollection->isOdd()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/is-odd.md)
- [$lazyCollection->join()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/join.md)
- [$lazyCollection->key()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/key.md)
- [$lazyCollection->keyOf()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/key-of.md)
- [$lazyCollection->keys()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/keys.md)
- [$lazyCollection->last()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/last.md)
- [$lazyCollection->limit()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/limit.md)
- [$lazyCollection->map()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/map.md)
- [$lazyCollection->next()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/next.md)
- [$lazyCollection->not()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/not.md)
- [$lazyCollection->nth()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/nth.md)
- [$lazyCollection->offset()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/offset.md)
- [$lazyCollection->paginate()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/paginate.md)
- [$lazyCollection->pagination()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/pagination.md)
- [$lazyCollection->parent()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/parent.md)
- [$lazyCollection->pluck()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/pluck.md)
- [$lazyCollection->prepend()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/prepend.md)
- [$lazyCollection->prev()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/prev.md)
- [$lazyCollection->query()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/query.md)
- [$lazyCollection->random()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/random.md)
- [$lazyCollection->remove()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/remove.md)
- [$lazyCollection->rewind()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/rewind.md)
- [$lazyCollection->search()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/search.md)
- [$lazyCollection->set()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/set.md)
- [$lazyCollection->shuffle()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/shuffle.md)
- [$lazyCollection->slice()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/slice.md)
- [$lazyCollection->sort()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/sort.md)
- [LazyCollection::sortArgs()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/sort-args.md)
- [$lazyCollection->sortBy()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/sort-by.md)
- [$lazyCollection->toArray()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/to-array.md)
- [$lazyCollection->toJson()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/to-json.md)
- [$lazyCollection->toString()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/to-string.md)
- [$lazyCollection->update()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/update.md)
- [$lazyCollection->valid()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/valid.md)
- [$lazyCollection->values()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/values.md)
- [$lazyCollection->when()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/when.md)
- [$lazyCollection->without()](https://getkirby.com/docs/reference/objects/cms/lazy-collection/without.md)