public function __construct(Inventory $inventory) { $this->inventory = $inventory; }
/** * @param Inventory $inventory * @param Arrow $arrow */ public function __construct(Inventory $inventory, Arrow $arrow) { $this->arrow = $arrow; parent::__construct($inventory); }