public function __construct(Inventory $inventory, array $properties) { parent::__construct($properties); $this->inventory = $inventory; }