ElementPropertyExtension
Less than 1 minute
ElementPropertyExtension
PHPStan property extension for dynamic XML Element properties.
class ElementPropertyExtension implements \PHPStan\Reflection\PropertiesClassReflectionExtensionImplements: PHPStan\Reflection\PropertiesClassReflectionExtension
This extension informs PHPStan that Hazaar\XML\Element (and subclasses) may expose dynamic properties at runtime, enabling static analysis to resolve those accesses through a custom property reflection implementation.
Methods
hasProperty
Determine whether a class should be treated as having dynamic properties.
public hasProperty(ClassReflection $classReflection, string $propertyName): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$classReflection | PHPStan\Reflection\ClassReflection | reflected class being analyzed |
$propertyName | string | requested property name |
getProperty
public getProperty(ClassReflection $classReflection, string $propertyName): PropertyReflectionReturns: PHPStan\Reflection\PropertyReflection
Parameters
| Parameter | Type | Description |
|---|---|---|
$classReflection | PHPStan\Reflection\ClassReflection | |
$propertyName | string |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:18 +0000