Closed thekid closed 2 months ago
Reflection
Here's a first idea:
$prop= $type->property('name');
$prop->modifiers(); // lang.reflection.Modifiers<public | private(set)>
$prop->modifiers('get'); // lang.reflection.Modifiers<public>
$prop->modifiers('set'); // lang.reflection.Modifiers<private>
This pull request adds emitting support for asymmetric visibility using
(set)
specifiers on property modifiersSee https://wiki.php.net/rfc/asymmetric-visibility-v2 and xp-framework/compiler#182