MediaWiki master
Wikimedia\DebugInfo\AnnotationReader Class Reference

Utility class for reading doc comment annotations. More...

Static Public Member Functions

static propertyHasAnnotation (\ReflectionProperty $property, string $annotationName)
 Determine whether a ReflectionProperty has a specified annotation.
 

Detailed Description

Utility class for reading doc comment annotations.

Since
1.40

Definition at line 10 of file AnnotationReader.php.

Member Function Documentation

◆ propertyHasAnnotation()

static Wikimedia\DebugInfo\AnnotationReader::propertyHasAnnotation ( \ReflectionProperty $property,
string $annotationName )
static

Determine whether a ReflectionProperty has a specified annotation.

Parameters
\\ReflectionProperty$property
string$annotationName
Returns
bool

Definition at line 21 of file AnnotationReader.php.

Referenced by Wikimedia\DebugInfo\DumpUtils\objectToArray().


The documentation for this class was generated from the following file: