ElementPropertyReflection
ElementPropertyReflection
Property reflection model for dynamic XML Element properties.
class ElementPropertyReflection implements \PHPStan\Reflection\PropertyReflectionImplements: PHPStan\Reflection\PropertyReflection
This reflection implementation describes synthetic/dynamic properties exposed by Hazaar\XML\Element objects for PHPStan analysis. It reports visibility, readability/writability, and type information used by the static analyzer when resolving dynamic property access.
Properties
declaringClass
Class reflection that owns the synthetic property.
private ClassReflection $declaringClassType: PHPStan\Reflection\ClassReflection
Methods
__construct
Create a new synthetic property reflection.
public __construct(ClassReflection $declaringClass): voidParameters
| Parameter | Type | Description |
|---|---|---|
$declaringClass | PHPStan\Reflection\ClassReflection | declaring class reflection |
getDeclaringClass
Get the class reflection declaring this property.
public getDeclaringClass(): ClassReflectionReturns: PHPStan\Reflection\ClassReflection
isStatic
Determine whether the synthetic property is static.
public isStatic(): boolReturns: bool
isPrivate
Determine whether the synthetic property is private.
public isPrivate(): boolReturns: bool
isPublic
Determine whether the synthetic property is public.
public isPublic(): boolReturns: bool
getDocComment
Get the property doc comment, if any.
public getDocComment(): ?stringReturns: string
getReadableType
Get the readable type for the synthetic property.
public getReadableType(): TypeReturns: PHPStan\Type\Type
getWritableType
public getWritableType(): TypeReturns: PHPStan\Type\Type
canChangeTypeAfterAssignment
public canChangeTypeAfterAssignment(): boolReturns: bool
isReadable
public isReadable(): boolReturns: bool
isWritable
public isWritable(): boolReturns: bool
isDeprecated
public isDeprecated(): TrinaryLogicReturns: PHPStan\TrinaryLogic
getDeprecatedDescription
public getDeprecatedDescription(): ?stringReturns: string
isInternal
public isInternal(): TrinaryLogicReturns: PHPStan\TrinaryLogic
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:18 +0000