Target
in package
Annotation that can be used to signal to the parser to check the annotation target during the parsing process.
Tags
Table of Contents
- TARGET_ALL = 15
- TARGET_ANNOTATION = 8
- TARGET_CLASS = 1
- TARGET_METHOD = 2
- TARGET_PROPERTY = 4
- $literal : int
- Literal target declaration.
- $targets : int
- Targets as bitmask.
- $value : array<string|int, mixed>
- $map : array<string|int, mixed>
- __construct() : mixed
- Annotation constructor.
Constants
TARGET_ALL
public
mixed
TARGET_ALL
= 15
TARGET_ANNOTATION
public
mixed
TARGET_ANNOTATION
= 8
TARGET_CLASS
public
mixed
TARGET_CLASS
= 1
TARGET_METHOD
public
mixed
TARGET_METHOD
= 2
TARGET_PROPERTY
public
mixed
TARGET_PROPERTY
= 4
Properties
$literal
Literal target declaration.
public
int
$literal
$targets
Targets as bitmask.
public
int
$targets
$value
public
array<string|int, mixed>
$value
$map
private
static array<string|int, mixed>
$map
= array('ALL' => self::TARGET_ALL, 'CLASS' => self::TARGET_CLASS, 'METHOD' => self::TARGET_METHOD, 'PROPERTY' => self::TARGET_PROPERTY, 'ANNOTATION' => self::TARGET_ANNOTATION)
Methods
__construct()
Annotation constructor.
public
__construct(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>