/** * Adds a unit type to list of available units. Other units are cloned * from available types, ensuring a single dependency point. * * @param Unit $oUnit */ public static function addUnitType(Unit $oUnit) { self::$aUnitTypes[$oUnit->getType()] = $oUnit; }