for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Collections;
use Cubiche\Core\Collections\ArrayCollection\ArrayHashMap;
use Cubiche\Core\Collections\LazyCollection\LazyHashMap;
* Data Source HashMap.
* @author Karel Osorio Ramírez <[email protected]>
* @author Ivannis Suárez Jerez <[email protected]>
class DataSourceHashMap extends LazyHashMap
{
use DataSourceCollectionTrait;
* {@inheritdoc}
protected function initialize()
$this->collection = new ArrayHashMap();
foreach ($this->dataSource->getIterator() as $key => $value) {
$this->collection->set($key, $value);
}