public function __call($method, $args) { if (!in_array($method, array('call', 'start', 'loop', 'setOpt'))) { throw new Exception("[error] {$method} is not exist!"); } return call_user_func_array(array(BaseModel::getInstance(), $method), (array) $args); }
public static function handle() { BaseModel::getInstance()->handle(new static()); }