protected function gItems(array $items) { $collection = new InventoryItemCollection(); foreach ($items as $properties) { $item = new InventoryItem($this, $properties); $collection->put($item->itemHash, $item); } return $collection; }