PHP Manual
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
__PHP_Incomplete_Class
Attribute
Language Reference
PHP Manual
Predefined Attributes
Table of Contents
Attribute
— The Attribute attribute
Attribute::__construct
— Construct a new Attribute instance
AllowDynamicProperties
— The AllowDynamicProperties attribute
AllowDynamicProperties::__construct
— Construct a new AllowDynamicProperties attribute instance
Deprecated
— The Deprecated attribute
Deprecated::__construct
— Construct a new Deprecated attribute instance
Override
— The Override attribute
Override::__construct
— Construct a new Override attribute instance
ReturnTypeWillChange
— The ReturnTypeWillChange attribute
ReturnTypeWillChange::__construct
— Construct a new ReturnTypeWillChange attribute instance
SensitiveParameter
— The SensitiveParameter attribute
SensitiveParameter::__construct
— Construct a new SensitiveParameter attribute instance
PHP provides some predefined attributes that can be used.