AirLay backend

SecretKeyEntity extends DatabaseEntity
in package

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>

Properties

Methods

__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

getSecretKey()

public getSecretKey() : string
Return values
string

getUserId()

public getUserId() : ObjectId
Return values
ObjectId

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>

Search results