Interface
ShipmentValidatorInterface
Magento\Sales\Model\Order\Shipment\ShipmentValidatorInterface
What it does
This interface defines a contract for validating shipment entities in Magento 2.
Developers implement this interface to create validators that check if a shipment meets specific business rules before it's saved or processed.
It accepts a shipment object and an array of validator instances, returning validation results or throwing exceptions if validation fails.
Public Methods
- validate()