Child Of Attribute Is Not An Attribute

no-email (Damien Seguy), Damien Seguy
Wed, 26 Jun 2024 00:00:00 +0000

A class attribute must be marked with an attribute called ``Attribute``. It is compulsory to use Reflection and obtain an instance of the attribute.
That attribute is only for the class itself, and it doesn't propagate automatically to the child classes.
On the other hand, the ``Attribute`` class cannot be extended: it is not possible to create a child that may carry some of the ``Attribute`` properties.