original_string: public static function create_from_userlist(userlist $userlist) : approved_userlist {
          $newlist = new static($userlist->get_context(), $userlist->get_component(), $userlist->get_userids());
  
          return $newlist;
      }
code: public static function create_from_userlist(userlist $userlist) : approved_userlist {
          $newlist = new static($userlist->get_context(), $userlist->get_component(), $userlist->get_userids());
  
          return $newlist;
      }
code_tokens: public static function create_from_userlist ( userlist $ userlist ) : approved_userlist { $ newlist = new static ( $ userlist -> get_context ( ) , $ userlist -> get_component ( ) , $ userlist -> get_userids ( ) ) ; return $ newlist ; }
docstring: Create an approved userlist from a userlist.
  
  @param   userlist        $userlist The source list
  @return  approved_userlist   The newly created approved userlist.
docstring_tokens: Create an approved userlist from a userlist .