Annotation that can be used to signal to the parser to check the annotation target during the parsing process.
- Full name:
\Doctrine\Common\Annotations\Annotation\Target
- This class is marked as final and can't be subclassed
- This class is a Final class
Constant | Visibility | Type | Value |
---|---|---|---|
TARGET_CLASS |
public | 1 | |
TARGET_METHOD |
public | 2 | |
TARGET_PROPERTY |
public | 4 | |
TARGET_ANNOTATION |
public | 8 | |
TARGET_FUNCTION |
public | 16 | |
TARGET_ALL |
public | 31 |
private static array<string,int> $map
- This property is static.
public $value
Targets as bitmask.
public int $targets
Literal target declaration.
public string $literal
public __construct(array $values): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$values |
array |