/** * To get the class name of the caller according to scope visibility. * * @return string */ private function getCallerStatedClassName() : string { if (true !== $this->callerStatedClassesStack->isEmpty()) { return $this->callerStatedClassesStack->top(); } return ''; }