Table of Contents
-
$_id
: ObjectId
-
$confirmed
: bool
-
$lastAuth
: int
-
$secretKey
: string
-
$userId
: ObjectId
-
__construct()
: mixed
-
__toString()
: string
-
bsonSerialize()
: array<string|int, mixed>
-
bsonUnserialize()
: void
-
confirm()
: self
-
getId()
: ObjectId
-
getLastAuth()
: int
-
getSecretKey()
: string
-
getUserId()
: ObjectId
-
isConfirmed()
: bool
-
jsonSerialize()
: array<string|int, mixed>
-
parseObjectId()
: ObjectId|null
-
setId()
: self
-
setLastAuth()
: self
-
toArray()
: array<string|int, mixed>
$_id
protected
ObjectId
$_id
$confirmed
private
bool
$confirmed
= false
$lastAuth
private
int
$lastAuth
= 0
$secretKey
private
string
$secretKey
$userId
private
ObjectId
$userId
__construct()
public
__construct(ObjectId $userId, string $secretKey[, ObjectId|null $id = null ]) : mixed
Parameters
-
$userId
: ObjectId
-
-
$secretKey
: string
-
-
$id
: ObjectId|null
= null
-
Return values
mixed
—
__toString()
public
__toString() : string
Return values
string
—
bsonSerialize()
public
bsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
bsonUnserialize()
public
bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
Return values
void
—
confirm()
public
confirm() : self
Return values
self
—
getId()
public
getId() : ObjectId
Return values
ObjectId
—
getLastAuth()
public
getLastAuth() : int
Return values
int
—
getSecretKey()
public
getSecretKey() : string
Return values
string
—
getUserId()
public
getUserId() : ObjectId
Return values
ObjectId
—
isConfirmed()
public
isConfirmed() : bool
Return values
bool
—
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
parseObjectId()
public
static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
-
$objectId
: mixed
-
Return values
ObjectId|null
—
setId()
public
setId(ObjectId $id) : self
Parameters
-
$id
: ObjectId
-
Return values
self
—
setLastAuth()
public
setLastAuth(int $time) : self
Parameters
-
$time
: int
-
Return values
self
—
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
—