You are here

LazyArrayCollection.php in Plug 7

Namespace

Doctrine\Tests

File

lib/doctrine/collections/tests/Doctrine/Tests/LazyArrayCollection.php
View source
<?php

namespace Doctrine\Tests;

use Doctrine\Common\Collections\AbstractLazyCollection;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Simple lazy collection that used an ArrayCollection as backed collection
 */
class LazyArrayCollection extends AbstractLazyCollection {

  /**
   * Do the initialization logic
   *
   * @return void
   */
  protected function doInitialize() {
    $this->collection = new ArrayCollection(array(
      'a',
      'b',
      'c',
    ));
  }

}

Classes

Namesort descending Description
LazyArrayCollection Simple lazy collection that used an ArrayCollection as backed collection