class HigherOrderCollectionProxyHelper

Types a higher-order collection proxy as the collection method it names, called with a callback that returns what the proxied member returns, so each result follows that method's own signature.

Upstream types each collection method by hand, giving most results integer keys and the base collection class, and supports neither array items nor class-string items.

Methods

bool
hasPropertyOrMethod(ClassReflection $classReflection, string $name, string $propertyOrMethod)

Determine whether the proxy's target has the method or property.

PropertyReflection
getProperty(ClassReflection $classReflection, string $name)

Get the property read through the proxy.

MethodReflection
getMethod(ClassReflection $classReflection, string $name)

Get the method called through the proxy.

Details

at line 39
bool hasPropertyOrMethod(ClassReflection $classReflection, string $name, string $propertyOrMethod)

Determine whether the proxy's target has the method or property.

Parameters

ClassReflection $classReflection
string $name
string $propertyOrMethod

Return Value

bool

at line 74
PropertyReflection getProperty(ClassReflection $classReflection, string $name)

Get the property read through the proxy.

Parameters

ClassReflection $classReflection
string $name

Return Value

PropertyReflection

at line 96
MethodReflection getMethod(ClassReflection $classReflection, string $name)

Get the method called through the proxy.

Parameters

ClassReflection $classReflection
string $name

Return Value

MethodReflection