php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_attributes.stub.php
Go to the documentation of this file.
1<?php
2
4
5#[Attribute(Attribute::TARGET_CLASS)]
6final class Attribute
7{
9 const int TARGET_CLASS = UNKNOWN;
11 const int TARGET_FUNCTION = UNKNOWN;
13 const int TARGET_METHOD = UNKNOWN;
15 const int TARGET_PROPERTY = UNKNOWN;
17 const int TARGET_CLASS_CONSTANT = UNKNOWN;
19 const int TARGET_PARAMETER = UNKNOWN;
21 const int TARGET_ALL = UNKNOWN;
23 const int IS_REPEATABLE = UNKNOWN;
24
25 public int $flags;
26
27 public function __construct(int $flags = Attribute::TARGET_ALL) {}
28}
29
30#[Attribute(Attribute::TARGET_METHOD)]
32{
33 public function __construct() {}
34}
35
36#[Attribute(Attribute::TARGET_CLASS)]
38{
39 public function __construct() {}
40}
41
45#[Attribute(Attribute::TARGET_PARAMETER)]
47{
48 public function __construct() {}
49}
50
56{
57 private readonly mixed $value;
58
59 public function __construct(mixed $value) {}
60
61 public function getValue(): mixed {}
62
63 public function __debugInfo(): array {}
64}
65
69#[Attribute(Attribute::TARGET_METHOD)]
70final class Override
71{
72 public function __construct() {}
73}
74
78#[Attribute(Attribute::TARGET_METHOD|Attribute::TARGET_FUNCTION|Attribute::TARGET_CLASS_CONSTANT)]
79final class Deprecated
80{
81 public readonly ?string $message;
82
83 public readonly ?string $since;
84
85 public function __construct(?string $message = null, ?string $since = null) {}
86}
const int TARGET_FUNCTION
const int TARGET_CLASS
const int TARGET_PROPERTY
__construct(int $flags=Attribute::TARGET_ALL)
const int TARGET_METHOD
const int TARGET_PARAMETER
const int TARGET_CLASS_CONSTANT
const int IS_REPEATABLE
__construct(?string $message=null, ?string $since=null)
readonly string $message
readonly string $since
phar_globals readonly
Definition phar.c:3346
function(EX_VAR(opline->result.var))