ElementPropertyExtension
Less than 1 minute
ElementPropertyExtension
PHPStan property extension for dynamic XML Element properties.
class ElementPropertyExtension implements \Hazaar\XML\PHPStan\PropertiesClassReflectionExtensionThis 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): boolParameters
| Parameter | Type | Description |
|---|---|---|
$classReflection | ClassReflection | reflected class being analyzed |
$propertyName | string | requested property name |
getProperty
public getProperty(ClassReflection $classReflection, string $propertyName): PropertyReflectionParameters
| Parameter | Type | Description |
|---|---|---|
$classReflection | ClassReflection | |
$propertyName | string |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000