This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/doctrine/collections/tests/Doctrine/Tests/LazyArrayCollection.php

22 lines
484 B
PHP

<?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'));
}
}