Buildings
extends Model
in package
Buildings Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- updatePlanetBuildingQueue() : void
- Insert a new building queue and deduct resources
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —updatePlanetBuildingQueue()
Insert a new building queue and deduct resources
public
updatePlanetBuildingQueue(array<string|int, mixed> $planet) : void
Parameters
- $planet : array<string|int, mixed>
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void