Shipment/Gateway/AbstractPlatform.php
protected function assertShipmentPlatform(ShipmentInterface $shipment)
    {
        if ($shipment->getPlatformName() !== $this->getName()) {
            throw new InvalidArgumentException(sprintf(
                "Platform %s does not support shipment %s.",
                $this->getName(), $shipment->getNumber()
            ));
        }
    }
protected function assertShipmentPlatform(ShipmentInterface $shipment)
    {
        if ($shipment->getPlatformName() !== $this->getName()) {
            throw new InvalidArgumentException(sprintf(
                "Platform %s does not support shipment %s.",
                $this->getName(), $shipment->getNumber()
            ));
        }
    }
Asserts that the given shipment is supported by this platform.

@param ShipmentInterface $shipment

@throws InvalidArgumentException