for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © Vaimo Group. All rights reserved.
* See LICENSE_VAIMO.txt for license details.
*/
namespace Vaimo\ComposerPatches\Patch\Definition\Exploder;
class ItemBuilder
{
public function createItem($label, array $item, array $updates = array())
return array(
$label,
array_replace($item, $updates)
);
}
public function createMultiple($label, array $data, $keyName)
$items = array();
foreach ($data as $source => $subItem) {
$items[] = $this->createItem($label, $subItem, array($keyName => $source));
return $items;