MiniAsset\AssetCollection::__construct PHP Method

__construct() public method

Constructor. You can provide an array or any traversable object
public __construct ( array $targets, Factory $factory )
$targets array
$factory Factory
    public function __construct(array $targets, Factory $factory)
    {
        $this->factory = $factory;
        foreach ($targets as $item) {
            $this->indexed[$item] = false;
        }
        $this->items = $targets;
    }