WebviepUserId
in package
FinalYes
Value object representing a WordPress user ID in the WebVIEP domain.
Table of Contents
Properties
- $value : int
Methods
- __construct() : mixed
- __toString() : string
- String representation.
- equals() : bool
- Compare user IDs.
- fromWpUserId() : self
- Factory from raw WordPress user ID.
- value() : int
- Raw numeric value.
Properties
$value
private
int
$value
Methods
__construct()
public
__construct(int $value) : mixed
Parameters
- $value : int
-
Positive user ID
Tags
__toString()
String representation.
public
__toString() : string
Return values
stringequals()
Compare user IDs.
public
equals(WebviepUserId $other) : bool
Parameters
- $other : WebviepUserId
Return values
boolfromWpUserId()
Factory from raw WordPress user ID.
public
static fromWpUserId(int $userId) : self
Parameters
- $userId : int
Return values
selfvalue()
Raw numeric value.
public
value() : int