(PHP 8)
ReflectionAttribute::getTarget — Returns the target of the attribute as bitmask
public ReflectionAttribute::getTarget(): int
Gets target of the attribute as bitmask.
This function has no parameters.
Gets target of the attribute as bitmask of Attribute::TARGET_* constants.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionattribute.gettarget.php