ReflectionFunctionAbstract::getClosureThis

Returns this pointer bound to closure

Description

public objectnull ReflectionFunctionAbstract::getClosureThis()

If the function is a non-static closure, get the object bound to $this inside the closure.

Parameters

This function has no parameters.

Return Values

Returns $this pointer. Returns null in case of an error.