-class ClearUserWatchlistJob extends Job {
-
- /**
- * @param User $user User to clear the watchlist for.
- * @param int $maxWatchlistId The maximum wl_id at the time the job was first created.
- *
- * @return ClearUserWatchlistJob
- */
- public static function newForUser( User $user, $maxWatchlistId ) {
- return new self(
- null,
- [ 'userId' => $user->getId(), 'maxWatchlistId' => $maxWatchlistId ]
- );
- }
-