Re: ReflectionAttribute: IS_INSTANCEOF and getTarget()
"J.O. Aho" <[email protected]> Mon, 13 Nov 2023 07:54:52 +0100
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
On 26/10/2023 10.09, alex wrote: Just my guesses as the documentation is a bit thin at the moment > https://www.php.net/manual/en/reflectionattribute.gettarget.php There are a number of attributes you can give a class, TARGET_* and you will get the sum of all those targets as an unified bit value. 0 if none of the TARGET_* are set. > https://www.php.net/manual/en/class.reflectionattribute.php#reflectionattribute.constants.is-instanceof this will give you something like typeof for the instance in question. -- //Aho