On 2 October 2024 09:06:20 BST, Rob Landers <rob@bottled.codes> wrote:

>You cannot build a “class” with these rules in PHP, so I don’t think enums 
>quack sufficiently like classes to be called a class. I would argue that it is 
>an object, however. I think it would be worth implementing a 
>get_declared_objects() that behaves like get_declared_classes() currently 
>does. 

Objects are instantiated classes, and not declared elements, so that name 
wouldn't make sense.

cheers
Derick 

Reply via email to