MediaWiki master
MediaWiki\Watchlist\WatchlistLabel Class Reference

Public Member Functions

 __construct (private readonly UserIdentity $user, string $name, private ?int $id=null,)
 
 getId ()
 
 getName ()
 
 getUser ()
 
 setId (int $id)
 
 setName (string $name)
 Change the label's name.
 

Detailed Description

Definition at line 17 of file WatchlistLabel.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Watchlist\WatchlistLabel::__construct ( private readonly UserIdentity $user,
string $name,
private ?int $id = null )

Definition at line 21 of file WatchlistLabel.php.

References MediaWiki\Watchlist\WatchlistLabel\setName().

Member Function Documentation

◆ getId()

MediaWiki\Watchlist\WatchlistLabel::getId ( )

◆ getName()

MediaWiki\Watchlist\WatchlistLabel::getName ( )

Definition at line 44 of file WatchlistLabel.php.

Referenced by MediaWiki\Watchlist\WatchlistLabelStore\save().

◆ getUser()

MediaWiki\Watchlist\WatchlistLabel::getUser ( )

Definition at line 40 of file WatchlistLabel.php.

◆ setId()

MediaWiki\Watchlist\WatchlistLabel::setId ( int $id)

◆ setName()

MediaWiki\Watchlist\WatchlistLabel::setName ( string $name)

Change the label's name.

Parameters
string$nameThe new name.

Definition at line 53 of file WatchlistLabel.php.

Referenced by MediaWiki\Watchlist\WatchlistLabel\__construct().


The documentation for this class was generated from the following file: