public function __call($method, $args)
{
$self = isset($this) ? $this : get_called_class();
$class = isset($this) ? get_class($this) : get_called_class();
if ($pointcut = Pointcut::before("{$class}::{$method}", $self, $args)) {
return $pointcut($self, $args);
}
}