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:----LqQD9oeTT7cWPOTnnBMLi2RATgQeUm22f5wUonn14pGqLwp40eGKEHwWUzygq6IUu+bAdlRNd41jjip/v+fClRpI5cwlzKYSkDmhH7IVeJgLcWfJF85DGvSknEJy6rv01vjapc75eFiefW5ocoN7+IP1qKBaHPKXut8cMno8WzVcZ5M1g9kJ9SQ+OZAW4ENRf15r+kFKYuys3BsRJYplIxL8D59wyurOORZKZEaNlEwmXlBAnSsB2ioRQHVFwja8alh47f8BlsnfHs+LuhBp3JSsmy9lOKOagtNkDbCTJbeZiGwUN4tbU6nmKLS9mL6haBHTsb26UL3yF4mpLitYVLaIgQ/DjpXanTZCFwytT7FIi+3AhMrAfOBo/x556nl/8OhIn+zVK2p2lMC4QEv8gmrIyWwEBGzKOI32+3HA2Varfre5ba+o+RDO3GmXWfN6zOOKjBbNnuS/P087EDDpUCPcEwxHtALcO2NzALkyv34SqEc/E2Zfaoi+BcN3QcOYWfw/NEC5XzIiat8WzeaMY5W3B0un2ZYIY9EThuOeqI2/61axLixe46m6um+CDlese8QLF/esC+Nb+G+sERVRxAcL+vSdDyabozLWWmj0gq6VUbTLSS8LyUNC0xtx7Ut6OiSkT/+Ua/qXnkSRuERqgwKw345eadyr0js9GOEDkJI=----ATTACHMENT:----NzkyMTE0NDU4MTIwOTA5MyA2MDIwOTk2MTU5Mjk5OTM3IDM0NjIzNjA3ODk0MDk4MA==