lib/SteamCondenser/Community/DotA2/DotA2Inventory.php
<?php
/**
* This code is free software; you can redistribute it and/or modify it under
* the terms of the new BSD License.
*
* Copyright (c) 2012-2014, Sebastian Staudt
*
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*/
namespace SteamCondenser\Community\DotA2;
use SteamCondenser\Community\GameInventory;
/**
* Represents the inventory of a DotA 2 player
*
* @author Sebastian Staudt
* @package steam-condenser
* @subpackage community
*/
class DotA2Inventory extends GameInventory {
const APP_ID = 570;
const ITEM_CLASS = '\SteamCondenser\Community\DotA2\DotA2Item';
/**
* This checks the cache for an existing inventory. If it exists it is
* returned. Otherwise a new inventory is created.
*
* @param string $steamId The 64bit Steam ID or vanity URL of the user
* @param bool $fetchNow Whether the data should be fetched now
* @param bool $bypassCache Whether the cache should be bypassed
* @return DotA2Inventory The inventory created from the given options
*/
public static function createInventory($steamId, $fetchNow = true, $bypassCache = false) {
return parent::create(self::APP_ID, $steamId, $fetchNow, $bypassCache);
}
}