private function mapBindings($bindingType, array $bindings)
{
$res = [];
foreach ($bindings as $key => $binding) {
$value = $this->entityMapper->valueObject($binding);
if ($bindingType === self::BINDING_NAMED) {
$res[$key] = ['value' => $value];
} else {
$res[] = ['value' => $value];
}
}
return $res;
}