laminas-code
laminas-code copied to clipboard
Add setAttributes to ClassGenerator
Feature Request
| Q | A |
|---|---|
| New Feature | yes |
| RFC | no |
| BC Break | no |
Summary
Please add support for attributes generation like it has place for DocBlockGenerator
It should support one attributes or a group of them
#[Attribute1(arg: true)]
#[Attribute2]
class SampleClass implements
{
}
Probably requires a dedicated AttributeGenerator: consider sending a patch/proposal.
Should I leave compatibility with 7.4?
Your pick: PHP 7.4 is almost dead, so you can drop it, if it helps development.
See also #143
https://github.com/laminas/laminas-code/pull/145