public function __construct(Block $block) { $this->block = $block; }
public function __construct(Furnace $furnace, Item $fuel, $burnTime) { parent::__construct($furnace->getBlock()); $this->fuel = $fuel; $this->burnTime = (int) $burnTime; $this->furnace = $furnace; }