HardwareType
Table of Contents
Properties
-
$cost
: int
-
$name
: string
-
$typeID
: int
-
$CACHE_HARDWARE_TYPES
: array<int, self>
Methods
-
__construct()
: mixed
-
clearCache()
: void
-
get()
: self
-
getAll()
: array<int, self>
$cost
read-only
public
int
$cost
$name
read-only
public
string
$name
$typeID
read-only
public
int
$typeID
$CACHE_HARDWARE_TYPES
private
static array<int, self>
$CACHE_HARDWARE_TYPES
= []
__construct()
public
__construct(int $typeID, string $name, int $cost) : mixed
Parameters
-
$typeID
: int
-
-
$name
: string
-
-
$cost
: int
-
clearCache()
public
static clearCache() : void
get()
public
static get(int $hardwareTypeID) : self
Parameters
-
$hardwareTypeID
: int
-
getAll()
public
static getAll() : array<int, self>
Return values
array<int, self>