xref: /PHP-8.2/Zend/zend_attributes.stub.php (revision e328c683)
1<?php
2
3/** @generate-class-entries */
4
5#[Attribute(Attribute::TARGET_CLASS)]
6final class Attribute
7{
8    /**
9     * @var int
10     * @cvalue ZEND_ATTRIBUTE_TARGET_CLASS
11     */
12    const TARGET_CLASS = UNKNOWN;
13    /**
14     * @var int
15     * @cvalue ZEND_ATTRIBUTE_TARGET_FUNCTION
16     */
17    const TARGET_FUNCTION = UNKNOWN;
18    /**
19     * @var int
20     * @cvalue ZEND_ATTRIBUTE_TARGET_METHOD
21     */
22    const TARGET_METHOD = UNKNOWN;
23    /**
24     * @var int
25     * @cvalue ZEND_ATTRIBUTE_TARGET_PROPERTY
26     */
27    const TARGET_PROPERTY = UNKNOWN;
28    /**
29     * @var int
30     * @cvalue ZEND_ATTRIBUTE_TARGET_CLASS_CONST
31     */
32    const TARGET_CLASS_CONSTANT = UNKNOWN;
33    /**
34     * @var int
35     * @cvalue ZEND_ATTRIBUTE_TARGET_PARAMETER
36     */
37    const TARGET_PARAMETER = UNKNOWN;
38    /**
39     * @var int
40     * @cvalue ZEND_ATTRIBUTE_TARGET_ALL
41     */
42    const TARGET_ALL = UNKNOWN;
43    /**
44     * @var int
45     * @cvalue ZEND_ATTRIBUTE_IS_REPEATABLE
46     */
47    const IS_REPEATABLE = UNKNOWN;
48
49    public int $flags;
50
51    public function __construct(int $flags = Attribute::TARGET_ALL) {}
52}
53
54#[Attribute(Attribute::TARGET_METHOD)]
55final class ReturnTypeWillChange
56{
57    public function __construct() {}
58}
59
60#[Attribute(Attribute::TARGET_CLASS)]
61final class AllowDynamicProperties
62{
63    public function __construct() {}
64}
65
66/**
67 * @strict-properties
68 */
69#[Attribute(Attribute::TARGET_PARAMETER)]
70final class SensitiveParameter
71{
72    public function __construct() {}
73}
74
75/**
76 * @strict-properties
77 * @not-serializable
78 */
79final class SensitiveParameterValue
80{
81    private readonly mixed $value;
82
83    public function __construct(mixed $value) {}
84
85    public function getValue(): mixed {}
86
87    public function __debugInfo(): array {}
88}
89