/**
* Method invoker
*
* @param Joinpoint $joinpoint the method invocation joinpoint
*
* @return mixed the result of the call to {@see Joinpoint->proceed()}
*/
public final function invoke(Joinpoint $joinpoint)
{
if ($joinpoint instanceof Invocation) {
if ($this->dynamicPointFilter->matches($joinpoint->getStaticPart(), $joinpoint->getThis(), $joinpoint->getArguments())) {
return $this->interceptor->invoke($joinpoint);
}
}
return $joinpoint->proceed();
}