for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Innmind\Neo4jBundle\Factory;
use Innmind\Immutable\Map;
final class MapFactory
{
public static function make(string $class, string $type, array $elements)
$map = new Map('string', $type);
foreach ($elements as $key => $element) {
$map = $map->put($key, $element);
}
return new $class($map);