Opis\Closure\SerializableClosure::getReflector PHP Method

getReflector() public method

Get the reflector for closure
public getReflector ( ) : ReflectionClosure
return ReflectionClosure
    public function getReflector()
    {
        if ($this->reflector === null) {
            $this->reflector = new ReflectionClosure($this->closure, $this->code);
            $this->code = null;
            $this->useVars = null;
        }
        return $this->reflector;
    }