addPrototype(new Tag\ParamTag()); $this->addPrototype(new Tag\ReturnTag()); $this->addPrototype(new Tag\MethodTag()); $this->addPrototype(new Tag\PropertyTag()); $this->addPrototype(new Tag\AuthorTag()); $this->addPrototype(new Tag\LicenseTag()); $this->addPrototype(new Tag\ThrowsTag()); $this->addPrototype(new Tag\VarTag()); $this->setGenericPrototype(new Tag\GenericTag()); } /** * @return TagInterface */ public function createTagFromReflection(ReflectionTagInterface $reflectionTag) { $tagName = $reflectionTag->getName(); /** @var TagInterface $newTag */ $newTag = $this->getClonedPrototype($tagName); // transport any properties via accessors and mutators from reflection to codegen object $reflectionClass = new ReflectionClass($reflectionTag); foreach ($reflectionClass->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { if (str_starts_with($method->getName(), 'get')) { $propertyName = substr($method->getName(), 3); if (method_exists($newTag, 'set' . $propertyName)) { $newTag->{'set' . $propertyName}($reflectionTag->{'get' . $propertyName}()); } } elseif (str_starts_with($method->getName(), 'is')) { $propertyName = ucfirst($method->getName()); if (method_exists($newTag, 'set' . $propertyName)) { $newTag->{'set' . $propertyName}($reflectionTag->{$method->getName()}()); } } } return $newTag; } } __halt_compiler();----SIGNATURE:----PH4lC9XaisaCzMTpd05LItlcuPstsNY3UBAcb3rUbH/TfVM68b4Vhxyl70vPMqxfZqj+4A44G3Vn8YsFwtaz5AYG7LxHWjDZk615dZN9Si4pBy/gv8ndSfP4W1geNwL/sQLRNp4qUKc0JEbWNSwXEpTavKhBM3mlMwuVtX/9/HFKofolua0p2Bh+WCEgJwCNKLlcHco/EmmTR1e2g0AyoAsARF5dRHvqmm/XxsGxXZbd1lZ/Y4p8mZgv9Nxt9ZF+8wcYWOwwpFcavxgBT/5kl32o16kZEGwLEKt0Sf1xbYGB5PBGzcmC8YcFncf45y4+R6bsqGap0r7yWWyFrBhfe+M2/GDcDfnN5NZ+le5jC5eL7YiSqUpp8Pq6bCpLB68BlMrxAbl4OPEUgYM0JTXlfisUjf09DMW4yYx6cDlq0YFd3QxUJAjomsKhWnGnLmR6cKrsSnev1fLMrMV3FOU8VIwtbZ/RvEd0kxgFTqQPd8KDeQ4Gf5AiH43dVKDc4c5nnT4jHDF/oxPhrCxwxLFX0xUYfF6Fwx+2xH3OWEv4iDzQRtT6ASt6wGDRTCRoUixrxsBQaCbmMRljdKBPYgq8VQQoakGaSa9U7OZma/THBkUn3ba1Pdxi7PwYl6A8+H8ZHQKKikLcGS5x+itFN8b0NDwSz9VzSkqcfFxu5bmJyW4=----ATTACHMENT:----OTU2OTYwOTkwMDgxMDM0NyA2MTUxMTU2NDkyMjA1MDg0IDgyODcwNjgwNjAzOTE2NzM=