Destiny\Character\Inventory::__construct PHP Method

__construct() public method

public __construct ( Character $character, array $properties )
$character Destiny\Character
$properties array
    public function __construct(Character $character, array $properties)
    {
        $items = [];
        foreach (array_get($properties, 'items', null) as $property) {
            $hash = (string) $property['itemHash'];
            $definition = manifest()->inventoryItem($hash);
            $property = array_merge($property, $definition->getProperties());
            $items['buckets'][$property['bucketHash']] = new InventoryItem(new InventoryBucket($this, $properties), $property);
        }
        parent::__construct($items);
        $this->character = $character;
    }