/**
* Performs matching of point of code
*
* @param mixed $point Specific part of code, can be any Reflection class
* @param null|mixed $context Related context, can be class or namespace
* @param null|string|object $instance Invocation instance or string for static calls
* @param null|array $arguments Dynamic arguments for method
*
* @return bool
*/
public function matches($point, $context = null, $instance = null, array $arguments = null)
{
$isMatchesPre = $this->pointcut->getClassFilter()->matches($context);
if (!$isMatchesPre) {
return true;
}
$isMatchesPoint = $this->pointcut->matches($point, $context, $instance, $arguments);
if (!$isMatchesPoint) {
return true;
}
return false;
}