} if ($excludes =
$tag->
getExclude()) { if (1 === \
count($excludes)) { $element->
setAttribute('exclude',
$excludes[0
]);
} else { foreach ($excludes as $exclude) { $element->
appendChild($this->document->
createElement('exclude',
$exclude));
} } } if (!
$tag->
excludeSelf()) { $element->
setAttribute('exclude-self', 'false'
);
} } elseif ($value instanceof IteratorArgument
) { $element->
setAttribute('type', 'iterator'
);
$this->
convertParameters($value->
getValues(),
$type,
$element, 'key'
);
} elseif ($value instanceof ServiceLocatorArgument
) { $element->
setAttribute('type', 'service_locator'
);
$this->
convertParameters($value->
getValues(),
$type,
$element, 'key'
);
} elseif ($value instanceof ServiceClosureArgument && !
$value->
getValues()[0
] instanceof Reference
) { $element->
setAttribute('type', 'service_closure'
);
$this->
convertParameters($value->
getValues(),
$type,
$element, 'key'
);
}