ReflectionFunctionAbstract::getClosureThis

Returns the object which corresponds to $this inside a closure

&reftitle.description; public ``object``null```ReflectionFunctionAbstract::getClosureThis`

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

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Return the object instance represented by `$this` inside the `Closure`. If the function is not a closure or if it has no `$this` &null; is returned instead.

&reftitle.seealso;

- `ReflectionFunctionAbstract::getClosureCalledClass`
- `ReflectionFunctionAbstract::getClosureScopeClass`
- language.oop5.late-static-bindings