AirLay backend

SubscriptionPlanEntity extends DatabaseEntity
in package

Table of Contents

$_id  : ObjectId
$cost  : array<string|int, mixed>
$maxDataSize  : float|null
$maxUserCount  : int|null
$name  : string
__construct()  : mixed
__toString()  : string
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
getCost()  : array<string|int, mixed>
getId()  : ObjectId
getMaxDataSize()  : float|null
getMaxUserCount()  : int|null
getName()  : string
jsonSerialize()  : array<string|int, mixed>
parseObjectId()  : ObjectId|null
setCost()  : self
setId()  : self
setMaxDataSize()  : self
setMaxUserCount()  : self
setName()  : self
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(int|null $maxUserCount, float|null $maxDataSize, array<string|int, mixed> $cost, string $name[, ObjectId|null $id = null ]) : mixed
Parameters
$maxUserCount : int|null
$maxDataSize : float|null
$cost : array<string|int, mixed>
$name : 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

getCost()

public getCost() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

setCost()

public setCost(array<string|int, mixed> $cost) : self
Parameters
$cost : array<string|int, mixed>
Return values
self

setId()

public setId(ObjectId $id) : self
Parameters
$id : ObjectId
Return values
self

setMaxDataSize()

public setMaxDataSize(float|null $maxDataSize) : self
Parameters
$maxDataSize : float|null
Return values
self

setMaxUserCount()

public setMaxUserCount(int|null $maxUserCount) : self
Parameters
$maxUserCount : int|null
Return values
self

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results