Dumplie\Inventory\Application\Command\RemoveProductFromStockHandler::handle PHP Method

handle() public method

public handle ( RemoveProductFromStock $command )
$command RemoveProductFromStock
    public function handle(RemoveProductFromStock $command)
    {
        $product = $this->products->getBySku(new SKU($command->sku()));
        $product->removeFromStock();
    }
RemoveProductFromStockHandler