We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9434399 + a2ac5ab commit 64ebf8eCopy full SHA for 64ebf8e
src/Core/Transform/WovenClassBuilder.php
@@ -123,6 +123,12 @@ private function buildClass(PhpNamespace $phpNamespace): ClassType
123
// Set abstract
124
$class->setAbstract($reflectionClass->isAbstract());
125
126
+ // Set attributes
127
+ $attributes = $reflectionClass->getAttributes();
128
+ foreach ($attributes as $attribute) {
129
+ $class->addAttribute($attribute->getName(), $attribute->getArguments());
130
+ }
131
+
132
return $class;
133
}
134
0 commit comments