public static function factory($id, $args) { $context = new UserContext(); $context->setID($id); $context->init($args); return $context; }