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:----ywdX3ognGkgKSw65/K3BZQksL2vbjDIDac1gUmsZ3qMOMEisqZPzPUcAEVGoVHY2EX7NPCpLGbaxxXhb9VT6BKvScDckaYdZHcNWH/ODfOrcxe2sLi2EVpY1y5cIH81Hf/EaheFC43K9BCVmqnCKleQm6dAhQsMIE63u+EGin9Jvx+5LqvTiBJd16CQd0Gx4EBJBi1J4cPhnWPh5PODGG+IVlmDG1HoTTdVN1mdsne88rBYG6hO5g7Wy5V3444pVMWhyxIMDgC56lPSGipf6WDY5CWKelcl4WKXIXwdKYuofQFPJGZGI1NlGuKrYxkNb6ydAV5TtCD1JLlfk7YXEWjS/AxlR0/KbOlW0HrTQH2Y0x0dEPNO7WARHfAA0MpRNrwnewfFy6wALxOm3AfFJCFgrT1vE1rdrLXTaV4N4u8ECkkFAhOflFzGzBWsfHk8+xFodf09CNLmoREwly1qD8BjHRI8BvyexcEt1Eq2dfjkLhP/gj94Wm46ruCO5Y1BF4RIjChxKK0XJsYykv/qcEVAtJxwwgL7tjCaFasUOYElL91Pt3H5UgOoXPYlijkJVgGyo8l5t7Rp/XFaJFyjz1uhOYw1ymkJd1J+lFwhdCgVPLunfGGapi+cv4ydCK2cOsO8NG5Ohoehk/URVbbVIrzcihZlaRa5k3d4RmRP/bMk=----ATTACHMENT:----MTcxOTE3MTEwOTQyMTAyOCA0Mzc3NjI0NzkyNDUyMTU1IDIwMzUyNzg2MzEzMDc5NTQ=