mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-14 05:13:46 +02:00
The PR is a huge refactor of all Reflect and Vegvisir code. I've merged the API and "Front-end" codebases together into the same root, this will allow for both Reflect and Vegvisir to use the same resources. Not only that, but I've also added proper database modeling with actual OOP inheritance for database tables. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/23
30 lines
No EOL
608 B
PHP
30 lines
No EOL
608 B
PHP
<?php
|
|
|
|
namespace VLW\Database\Tables\Battlestation;
|
|
|
|
use vlw\xEnum;
|
|
|
|
enum MbFormfactorEnum {
|
|
use xEnum;
|
|
|
|
case ATX;
|
|
case MTX;
|
|
case ITX;
|
|
case LAPTOP;
|
|
}
|
|
|
|
enum MbTable: string {
|
|
use xEnum;
|
|
|
|
const NAME = "mb";
|
|
|
|
case ID = "id";
|
|
case FORMFACTOR = "formfactor";
|
|
case VENDOR_NAME = "vendor_name";
|
|
case VENDOR_MODEL = "vendor_model";
|
|
case NETWORK_ETHERNET = "network_ethernet";
|
|
case NETWORK_WLAN = "network_wlan";
|
|
case NETWORK_BLUETOOTH = "network_bluetooth";
|
|
case DATE_AQUIRED = "date_aquired";
|
|
case IS_RETIRED = "is_retired";
|
|
} |