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:----ZQ4ewgcqbzVSACBzMJ5HsDT+OjQh2TF5ujCUGJN7NP1BxMludZtSH0edWt1uEaZioheuDpBITZn2gnHnC5H0bl7aO9CaeUpAWCD25S6htpdk9BJexZ8x4k5sfyH8xEkRfyUkBfmYaovJUtUSvD5RP1JTKPVTLpE9mNlaxgKC/24eMtx8PILM24BjamH+ii2LZmwv90tlAMX4GdDebpa6dWoago+vh+nm75d3QJ+qc+qmriOuQrxiLJBKnDFubr/SCSZcEXJMUKjr+viKZX/rXiI6kIX9bBOj2ckq+GIbD3FVRHBBaTQdiNhetMTCBnsF6WfpDU83vBYsghCExSyow1XLE4/Y4c4FloScmjjNb6Esxmafh5f/UdRmlLbMMAIWgsFblaYXCRAnA+AnKHdivoCGQtemaWNvdhGXsv1ddP5Rv6I+s8fhHtMAUcTFZeE8SbgSpYWECovU53WLfJicXEClPkaVLOVooe7rC2BYBrTu0iKxzQvgS5fFZE5H4M/BbwIDRH6aoGiD9rkbnqydw2wudQenCfzjptESvk0msOWzfNLPHyDzxbEETDr2QbPhDtJlyMsE6yJdCw3PUJXZiDbVjsraVY1lL4a2y39n4tWWWZRRrhafSJKFySzS1hI/EoLRZpwPaOQqYF3Dj5/tjY07Gi+rAlvJ5cV5xGUKUQg=----ATTACHMENT:----NzIxNDMzOTA1NDIxOTA3MSA1NzcwMzA3ODE0ODM2NDQ4IDkxNDgzMTY3MDEyODY3NjQ=