Properties
in package
FinalYes
DTO containing the list of all non-static proxy properties and utility methods to access them in various formats/collections
Table of Contents
Properties
- $properties : array<string|int, ReflectionProperty>
Methods
- empty() : bool
- filter() : self
- fromReflectionClass() : self
- getAccessibleProperties() : array<string, ReflectionProperty>
- getGroupedPrivateProperties() : array<class-string, array<string, ReflectionProperty>>
- getInstanceProperties() : array<string, ReflectionProperty>
- getPrivateProperties() : array<string, ReflectionProperty>
- getProtectedProperties() : array<string, ReflectionProperty>
- getPublicProperties() : array<string, ReflectionProperty>
- onlyInstanceProperties() : self
- onlyNonReferenceableProperties() : self
- onlyNullableProperties() : self
- onlyPropertiesThatCanBeUnset() : self
- withoutNonReferenceableProperties() : self
- Properties that cannot be referenced are non-nullable typed properties that aren't initialised
- __construct() : mixed
Properties
$properties
private
array<string|int, ReflectionProperty>
$properties
Methods
empty()
public
empty() : bool
Return values
boolfilter()
public
filter(array<int, string> $excludedProperties) : self
Parameters
- $excludedProperties : array<int, string>
Return values
selffromReflectionClass()
public
static fromReflectionClass(ReflectionClass $reflection) : self
Parameters
- $reflection : ReflectionClass
Return values
selfgetAccessibleProperties()
public
getAccessibleProperties() : array<string, ReflectionProperty>
Return values
array<string, ReflectionProperty> —indexed by the property internal visibility-aware name (\0*\0propertyName)
getGroupedPrivateProperties()
public
getGroupedPrivateProperties() : array<class-string, array<string, ReflectionProperty>>
Return values
array<class-string, array<string, ReflectionProperty>> —indexed by class name and property name
getInstanceProperties()
public
getInstanceProperties() : array<string, ReflectionProperty>
Return values
array<string, ReflectionProperty> —indexed by the property internal visibility-aware name (\0*\0propertyName)
getPrivateProperties()
public
getPrivateProperties() : array<string, ReflectionProperty>
Return values
array<string, ReflectionProperty> —indexed by the property internal visibility-aware name (\0ClassName\0propertyName)
getProtectedProperties()
public
getProtectedProperties() : array<string, ReflectionProperty>
Return values
array<string, ReflectionProperty> —indexed by the property internal visibility-aware name (\0*\0propertyName)
getPublicProperties()
public
getPublicProperties() : array<string, ReflectionProperty>
Return values
array<string, ReflectionProperty> —indexed by the property internal visibility-aware name
onlyInstanceProperties()
public
onlyInstanceProperties() : self
Return values
selfonlyNonReferenceableProperties()
public
onlyNonReferenceableProperties() : self
Return values
selfonlyNullableProperties()
public
onlyNullableProperties() : self
Return values
selfonlyPropertiesThatCanBeUnset()
public
onlyPropertiesThatCanBeUnset() : self
Tags
Return values
selfwithoutNonReferenceableProperties()
Properties that cannot be referenced are non-nullable typed properties that aren't initialised
public
withoutNonReferenceableProperties() : self
Return values
self__construct()
private
__construct(array<string|int, ReflectionProperty> $properties) : mixed
Parameters
- $properties : array<string|int, ReflectionProperty>