WebVIEP Plugin

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

Methods

__construct()

public __construct(int $value) : mixed
Parameters
$value : int

Positive user ID

Tags
throws
InvalidArgumentException

__toString()

String representation.

public __toString() : string
Return values
string

fromWpUserId()

Factory from raw WordPress user ID.

public static fromWpUserId(int $userId) : self
Parameters
$userId : int
Return values
self

value()

Raw numeric value.

public value() : int
Return values
int

        
On this page

Search results