Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.php > #19544

Re: ReflectionAttribute: IS_INSTANCEOF and getTarget()

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: ReflectionAttribute: IS_INSTANCEOF and getTarget()
Date Mon, 13 Nov 2023 07:54:52 +0100
Lines 18
Message-ID <krdvhsFfkjrU1@mid.individual.net> (permalink)
References <uhd6sm$1eugb$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net n04JJtUghyNXaZTrA/4uMg6LGcNMTY02hNOs/9xBU1WcEmDmGW
Cancel-Lock sha1:1QgmsKwjDN9oZTBHeXF4i6Mm2dk= sha256:AIJkTVSJ18nqkw3isb+rubk4y1kY9w5JOda5Ni4a1HI=
User-Agent Mozilla Thunderbird
Content-Language en-US-large
In-Reply-To <uhd6sm$1eugb$1@dont-email.me>
Xref csiph.com comp.lang.php:19544

Show key headers only | View raw


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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ReflectionAttribute: IS_INSTANCEOF and getTarget() alex <1j9448a02@lnx159sneakemail.com.invalid> - 2023-10-26 10:09 +0200
  Re: ReflectionAttribute: IS_INSTANCEOF and getTarget() Olen mitte keegi <kavalpeakelm@ya.ee> - 2023-11-12 09:12 -0800
  Re: ReflectionAttribute: IS_INSTANCEOF and getTarget() "J.O. Aho" <user@example.net> - 2023-11-13 07:54 +0100
    Re: ReflectionAttribute: IS_INSTANCEOF and getTarget() alex <1j9448a02@lnx159sneakemail.com.invalid> - 2023-11-13 12:50 +0100
      Re: ReflectionAttribute: IS_INSTANCEOF and getTarget() "J.O. Aho" <user@example.net> - 2023-11-13 14:32 +0100

csiph-web