public static function form($id, $title, $callback) { $form = new OptionForm($id, $title); call_user_func($callback, $form); return $form; }