Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Domain\Model\User Class Reference

Public Member Functions

 getUsername ()
 
 isAnonymous ()
 

Static Public Member Functions

static newAnonymous ()
 
static withUsername (string $username)
 

Private Member Functions

 __construct (?string $username)
 

Private Attributes

string $username
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Domain\Model\User::__construct ( ?string $username)
private

Member Function Documentation

◆ getUsername()

Wikibase\Repo\RestApi\Domain\Model\User::getUsername ( )
Returns
string|null Returns null for anonymous user

◆ isAnonymous()

Wikibase\Repo\RestApi\Domain\Model\User::isAnonymous ( )

◆ newAnonymous()

static Wikibase\Repo\RestApi\Domain\Model\User::newAnonymous ( )
static

◆ withUsername()

static Wikibase\Repo\RestApi\Domain\Model\User::withUsername ( string $username)
static

Member Data Documentation

◆ $username

string Wikibase\Repo\RestApi\Domain\Model\User::$username
private

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