getThis() public method

Returns the object that holds the current joinpoint's static part.
public getThis ( ) : object | string
return object | string the object for dynamic call or string with name of scope
 /**
  * @Go\After("execution(public **->*(*))")
  *
  * @param AbstractMethodInvocation $methodInvocation
  *
  * @return mixed
  */
 public function postPublicMethod(AbstractMethodInvocation $methodInvocation)
 {
     $scope = get_class($methodInvocation->getThis());
     foreach ($this->interceptors as $interceptor) {
         $interceptor($methodInvocation, $scope);
     }
     return $methodInvocation->proceed();
 }