Documentation

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
bool

filter()

public filter(array<int, string> $excludedProperties) : self
Parameters
$excludedProperties : array<int, string>
Return values
self

fromReflectionClass()

public static fromReflectionClass(ReflectionClass $reflection) : self
Parameters
$reflection : ReflectionClass
Return values
self

getAccessibleProperties()

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
self

onlyNonReferenceableProperties()

public onlyNonReferenceableProperties() : self
Return values
self

onlyNullableProperties()

public onlyNullableProperties() : self
Return values
self

onlyPropertiesThatCanBeUnset()

public onlyPropertiesThatCanBeUnset() : self
Tags
deprecated

Since PHP 7.4.1, all properties can be unset, regardless if typed or not

Return values
self

withoutNonReferenceableProperties()

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>

        
On this page

Search results