protected function getStockAdjustmentFromEvent(ResourceEventInterface $event)
    {
        $stockAdjustment = $event->getResource();

        if (!$stockAdjustment instanceof StockAdjustmentInterface) {
            throw new InvalidArgumentException("Expected instance of " . StockAdjustmentInterface::class);
        }

        return $stockAdjustment;
    }
protected function getStockAdjustmentFromEvent(ResourceEventInterface $event)
    {
        $stockAdjustment = $event->getResource();

        if (!$stockAdjustment instanceof StockAdjustmentInterface) {
            throw new InvalidArgumentException("Expected instance of " . StockAdjustmentInterface::class);
        }

        return $stockAdjustment;
    }
protected function getStockAdjustmentFromEvent ( ResourceEventInterface $ event ) { $ stockAdjustment = $ event -> getResource ( ) ; if ( ! $ stockAdjustment instanceof StockAdjustmentInterface ) { throw new InvalidArgumentException ( "Expected instance of " . StockAdjustmentInterface :: class ) ; } return $ stockAdjustment ; }
Returns the stock adjustment from the resource event.

@param ResourceEventInterface $event

@return StockAdjustmentInterface
Returns the stock adjustment from the resource event .