X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserIdentityValue.php;h=120f31f24d3e9d7cd2746111c98eb2f66e1a72f2;hb=8198ea31fdca69685b284e9ba85c450dee854ca2;hp=e728264a3f8953a49df663e6df35ccc2ed768526;hpb=dbad540cd37617879aff6f28ce9c016dd8049d4e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserIdentityValue.php b/includes/user/UserIdentityValue.php index e728264a3f..120f31f24d 100644 --- a/includes/user/UserIdentityValue.php +++ b/includes/user/UserIdentityValue.php @@ -41,16 +41,24 @@ class UserIdentityValue implements UserIdentity { */ private $name; + /** + * @var int + */ + private $actor; + /** * @param int $id * @param string $name + * @param int $actor */ - public function __construct( $id, $name ) { + public function __construct( $id, $name, $actor ) { Assert::parameterType( 'integer', $id, '$id' ); Assert::parameterType( 'string', $name, '$name' ); + Assert::parameterType( 'integer', $actor, '$actor' ); $this->id = $id; $this->name = $name; + $this->actor = $actor; } /** @@ -67,4 +75,11 @@ class UserIdentityValue implements UserIdentity { return $this->name; } + /** + * @return int The user's actor ID. May be 0 if no actor ID has been assigned. + */ + public function getActorId() { + return $this->actor; + } + }