class HigherOrderWhenProxyHelper

Types the properties and methods a HigherOrderWhenProxy passes to its target. A proxy without a condition takes it from the member and returns itself. A proxy with a condition returns the member's value when the condition holds, and the target otherwise.

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 34
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 51
PropertyReflection getProperty(ClassReflection $classReflection, string $name)

Get the property read through the proxy.

Parameters

ClassReflection $classReflection
string $name

Return Value

PropertyReflection

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

Get the method called through the proxy.

Parameters

ClassReflection $classReflection
string $name

Return Value

MethodReflection