From c2f61864a4edab6a8c58566a8a7ef87d85ae99fa Mon Sep 17 00:00:00 2001 From: Roman Lytvynenko Date: Tue, 24 Sep 2024 09:23:06 +0300 Subject: [PATCH] removed unused dto --- src/Support/Data/ParameterAnnotation.php | 72 ------------------------ 1 file changed, 72 deletions(-) delete mode 100644 src/Support/Data/ParameterAnnotation.php diff --git a/src/Support/Data/ParameterAnnotation.php b/src/Support/Data/ParameterAnnotation.php deleted file mode 100644 index 472a1804..00000000 --- a/src/Support/Data/ParameterAnnotation.php +++ /dev/null @@ -1,72 +0,0 @@ -getAttribute('summary') ?: '') - ->append(' '.($docNode->getAttribute('description') ?: '')) - ->trim(); - - if ($description) { - $parameter->description = $description; - } - - if (count($varTags = $docNode->getVarTagValues())) { - $varTag = $varTags[0]; - - $parameter->type = PhpDocTypeHelper::toType($varTag->type); - } - - if ($examples = ExamplesExtractor::make($docNode)->extract($preferStrings)) { - $parameter->example = $examples[0]; - } - - if ($default = ExamplesExtractor::make($docNode, '@default')->extract($preferStrings)) { - $parameter->default = $default[0]; - } - - if ($format = array_values($docNode->getTagsByName('@format'))[0]->value->value ?? null) { - $parameter->format = $format; - } - - if ($docNode->getTagsByName('@query')) { - $parameter->isInQuery = true; - } - - if (count($docNode->getTagsByName('@ignoreParam') ?? [])) { - $parameter->shouldIgnore = true; - } - - return $parameter; - } -}