for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @category Brownie/CartsGuru
* @author Brownie <[email protected]>
* @license http://www.gnu.org/copyleft/lesser.html
*/
namespace Brownie\CartsGuru\Model\Base;
* Entity storage.
abstract class EntityList
{
private $list;
public function __construct()
$this->createList();
}
private function createList()
$this->list = new \ArrayIterator(array());
* @return \ArrayIterator
private function getList()
return $this->list;
public function append($entity)
$this->getList()->append($entity);
public function getKeyName()
return $this->keyName;
public function toArray()
return $this->getList()->getArrayCopy();
public function count()
return $this->getList()->count();