public function getMethod($isWithinClosure) { return $isWithinClosure ? $this->methodInClosure : $this->method; }