public function __construct(InventoryDAO $inventoryDAO) { $this->groups = $inventoryDAO->getAllItemGroups(); }