public function matches($point, $context = null, $instance = null, array $arguments = null)
{
// With single parameter (statically) always matches for __call, __callStatic
if (!$instance) {
return $point->name === '__call' || $point->name === '__callStatic';
}
if (!$this->modifierFilter->matches($point)) {
return false;
}
// for __call and __callStatic method name is the first argument on invocation
list($methodName) = $arguments;
return $methodName === $this->methodName || (bool) preg_match("/^(?:{$this->regexp})\$/", $methodName);
}