Documentation

ReflectionPropertiesGetter
in package

FinalYes

Utility class to retrieve all reflection instance properties of a given class, including private inherited properties and transient properties.

Tags
private

This API is for internal use only

Table of Contents

Properties

$properties  : array<string|int, array<string|int, ReflectionProperty>>
$reflectionService  : ReflectionService

Methods

__construct()  : mixed
getProperties()  : array<string|int, ReflectionProperty>
getAccessibleProperty()  : ReflectionProperty|null
getClassProperties()  : array<string|int, ReflectionProperty>
getHierarchyClasses()  : array<string|int, ReflectionClass>
getLogicalName()  : string
isInstanceProperty()  : bool

Properties

$properties

private array<string|int, array<string|int, ReflectionProperty>> $properties = []

indexed by class name and property internal name

Methods

getProperties()

public getProperties(string $className) : array<string|int, ReflectionProperty>
Parameters
$className : string
Tags
psalm-param

class-string $className

Return values
array<string|int, ReflectionProperty>

indexed by property internal name

getAccessibleProperty()

private getAccessibleProperty(ReflectionProperty $property) : ReflectionProperty|null
Parameters
$property : ReflectionProperty
Return values
ReflectionProperty|null

getClassProperties()

private getClassProperties(ReflectionClass $reflectionClass) : array<string|int, ReflectionProperty>
Parameters
$reflectionClass : ReflectionClass
Tags
psalm-return

array<string, ReflectionProperty>

Return values
array<string|int, ReflectionProperty>

getHierarchyClasses()

private getHierarchyClasses(string $className) : array<string|int, ReflectionClass>
Parameters
$className : string
Tags
psalm-param

class-string $className

psalm-return

list<ReflectionClass>

Return values
array<string|int, ReflectionClass>

getLogicalName()

private getLogicalName(ReflectionProperty $property) : string
Parameters
$property : ReflectionProperty
Return values
string

isInstanceProperty()

private isInstanceProperty(ReflectionProperty $reflectionProperty) : bool
Parameters
$reflectionProperty : ReflectionProperty
Return values
bool

        
On this page

Search results