original_string: public static function create_expired_context($contextid) {
          $record = (object)[
              'contextid' => $contextid,
              'status' => expired_context::STATUS_EXPIRED,
          ];
          $expiredctx = new expired_context(0, $record);
          $expiredctx->save();
  
          return $expiredctx;
      }
code: public static function create_expired_context($contextid) {
          $record = (object)[
              'contextid' => $contextid,
              'status' => expired_context::STATUS_EXPIRED,
          ];
          $expiredctx = new expired_context(0, $record);
          $expiredctx->save();
  
          return $expiredctx;
      }
code_tokens: public static function create_expired_context ( $ contextid ) { $ record = ( object ) [ 'contextid' => $ contextid , 'status' => expired_context :: STATUS_EXPIRED , ] ; $ expiredctx = new expired_context ( 0 , $ record ) ; $ expiredctx -> save ( ) ; return $ expiredctx ; }
docstring: Creates an expired context record for the provided context id.
  
  @param int $contextid
  @return \tool_dataprivacy\expired_context
docstring_tokens: Creates an expired context record for the provided context id .