<?php
class target {
public static function startCrawler()
{
echo 'crawler state';
}
}
class adapter {
private static $class = '';
public function __construct($classname)
{
self::$class = $classname;
}
public static function __callStatic($method,$args)
{
echo 'start memory / time tracking';
call_user_func(array(self::$class,$method),$args);
echo 'end memory / time tracking';
}
}
$obj = new adapter('target');
$obj::startCrawler();