Documentation

HardwareType
in package

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>

Properties

$CACHE_HARDWARE_TYPES

private static array<int, self> $CACHE_HARDWARE_TYPES = []

Methods

__construct()

public __construct(int $typeID, string $name, int $cost) : mixed
Parameters
$typeID : int
$name : string
$cost : int

get()

public static get(int $hardwareTypeID) : self
Parameters
$hardwareTypeID : int
Return values
self

getAll()

public static getAll() : array<int, self>
Return values
array<int, self>

        
On this page

Search results