You are here

protected function AbstractLazyCollection::initialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php \Doctrine\Common\Collections\AbstractLazyCollection::initialize()

Initialize the collection

Return value

void

30 calls to AbstractLazyCollection::initialize()
AbstractLazyCollection::add in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Adds an element at the end of the collection.
AbstractLazyCollection::clear in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Clears the collection, removing all elements.
AbstractLazyCollection::contains in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Checks whether an element is contained in the collection. This is an O(n) operation, where n is the size of the collection.
AbstractLazyCollection::containsKey in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Checks whether the collection contains an element with the specified key/index.
AbstractLazyCollection::count in vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php

... See full list

File

vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php, line 329

Class

AbstractLazyCollection
Lazy collection that is backed by a concrete collection

Namespace

Doctrine\Common\Collections

Code

protected function initialize() {
  if (!$this->initialized) {
    $this
      ->doInitialize();
    $this->initialized = true;
  }
}