The ReflectionAttribute class
From Get docs
Php/docs/latest/class.reflectionattribute
The ReflectionAttribute class
Introduction
(PHP 8)
The ReflectionAttribute class provides information about an Attributes.
Class synopsis
class ReflectionAttribute implements Reflector {
private __construct()
public getArguments(): array
public getName(): string
public getTarget(): int
public isRepeated(): bool
public newInstance(): object
}
Table of Contents
- ReflectionAttribute::__construct — Private constructor to disallow direct instantiation
- ReflectionAttribute::getArguments — Gets arguments passed to attribute
- ReflectionAttribute::getName — Gets attribute name
- ReflectionAttribute::getTarget — Returns the target of the attribute as bitmask
- ReflectionAttribute::isRepeated — Returns whether the attribute of this name could occur repeatedly on a code element
- ReflectionAttribute::newInstance — Instantiates the attribute class represented by this ReflectionAttribute class and arguments
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.reflectionattribute.php
/* Methods */