Add instanced methods #4

Merged
vlw merged 5 commits from refs/pull/4/head into master 2023-04-18 20:28:20 +02:00
vlw commented 2023-03-27 20:20:13 +02:00 (Migrated from codeberg.org)

This PR implements the instanced methods desribed in the README (before they were added 😳)

This is however kind of useless.. since all PHP constants are scoped globally by nature, it's not possible to define two constants with the same name (or in this instance "flag") - and that kinda defeats the purpose of having them scoped in the first place.

So before merge it might be more prudent to just expose the instanced methods as aliases for their static counterpart.

Edit: Instanced functionality now behaves as expected. There IS a way to scope constants artifically, which is what I have done here.

This PR implements the instanced methods desribed in the README (before they were added 😳) ~~This is however kind of useless.. since all PHP constants are scoped globally by nature, it's not possible to define two constants with the same name (or in this instance "flag") - and that kinda defeats the purpose of having them scoped in the first place.~~ ~~So before merge it might be more prudent to just expose the instanced methods as aliases for their static counterpart.~~ Edit: Instanced functionality now behaves as expected. There IS a way to scope constants artifically, which is what I have done here.
Commenting is not possible because the repository is archived.
No description provided.