php8.5
Home/ Manual/ reflection / reflectionattribute/ ReflectionAttribute::getTarget

ReflectionAttribute::getTarget

PHP function Edit on GitHub ✎

(PHP 8)

Returns the target of the attribute as bitmask

Description

ReflectionAttribute::getTarget(): int

Gets target of the attribute as bitmask.

Parameters Parameters

Return Values

Gets target of the attribute as bitmask of Attribute::TARGET_* constants.

Source: reference/reflection/reflectionattribute/gettarget.xml · from the official PHP manual (php/doc-en)