15 private ?
int $userId =
null;
22 'wl_namespace=rc_namespace',
34 $this->userId = $user->
getId();
44 if ( $this->userId ===
null ) {
46 throw new \LogicException(
'User ID must be set for watchlist join' );
48 if ( $this->userId === 0 ) {
50 throw new \LogicException(
"Can't join on watchlist with wl_user=0" );
53 if ( $alias !==
null && $alias !==
'' ) {
54 $field =
"$alias.$field";
56 return [ $field => $this->userId ];