Bridge/Symfony/Serializer/Normalizer/StockAdjustmentNormalizer.php
public function normalize($adjustment, $format = null, array $context = [])
    {
        $data = [];

        if ($this->contextHasGroup('StockView', $context)) {
            $data = array_replace($data, [
                'quantity' => $this->getFormatter()->number($adjustment->getQuantity()),
                'reason'   => $adjustment->getReason(),
                'note'     => $adjustment->getNote(),
            ]);
        }

        return $data;
    }
public function normalize($adjustment, $format = null, array $context = [])
    {
        $data = [];

        if ($this->contextHasGroup('StockView', $context)) {
            $data = array_replace($data, [
                'quantity' => $this->getFormatter()->number($adjustment->getQuantity()),
                'reason'   => $adjustment->getReason(),
                'note'     => $adjustment->getNote(),
            ]);
        }

        return $data;
    }
@inheritdoc

@param StockAdjustmentInterface $adjustment