final |
|---|
Annotation that can be used to signal to the parser to check the annotation target during the parsing process.
| Methods | ||
|---|---|---|
public
|
__construct(array{value?: (string|list<string>)} $values)
|
# |
| Constants | ||
|---|---|---|
public
|
TARGET_CLASS = 1
|
# |
public
|
TARGET_METHOD = 2
|
# |
public
|
TARGET_PROPERTY = 4
|
# |
public
|
TARGET_ANNOTATION = 8
|
# |
public
|
TARGET_FUNCTION = 16
|
# |
public
|
TARGET_ALL = 31
|
# |
| Properties | |||
|---|---|---|---|
private
static
|
array<string, int>
|
$map = [
'ALL' => self::TARGET_ALL,
'CLASS' => self::TARGET_CLASS,
'METHOD' => self::TARGET_METHOD,
'PROPERTY' => self::TARGET_PROPERTY,
'FUNCTION' => self::TARGET_FUNCTION,
'ANNOTATION' => self::TARGET_ANNOTATION,
]
|
# |
public
|
|
$value
|
# |
public
|
int
|
$targets
|
# |
public
|
string
|
$literal
|
# |