return array_unique($paramTypes);
} private function getComment(BaseNode
$node): string
{ $comment = '';
if ('' !==
$info =
(string) $node->
getInfo()) { $comment .= ' * '.
$info."\n";
} if (!
$node instanceof ArrayNode
) { foreach ((array) ($node->
getExample() ??
[]) as $example) { $comment .= ' * @example '.
$example."\n";
} if ('' !==
$default =
$node->
getDefaultValue()) { $comment .= ' * @default '.
(null ===
$default ? 'null' :
var_export($default, true
))."\n";
} if ($node instanceof EnumNode
) { $comment .=
sprintf(' * @param ParamConfigurator|%s $value',
implode('|',
array_unique(array_map(fn ($a) => !
$a instanceof \UnitEnum ?
var_export($a, true
) : '\\'.
ltrim(var_export($a, true
), '\\'
),
$node->
getValues()))))."\n";
} else { $parameterTypes =
$this->
getParameterTypes($node);