Signatur
class ReflectionAttribute
Beschreibung
Wird von ReflectionClass::getAttributes(), ReflectionMethod::getAttributes() usw. zurückgegeben.
Rückgabewert
Typ
ReflectionAttribute
Beschreibung
Instanz.
Beispiele
Basis
<?php
foreach ($reflectionClass->getAttributes() as $attr) {
$instance = $attr->newInstance();
}