SourceCarrierLinkManagementInterface.php 1002 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryApi\Model;
  8. use Magento\InventoryApi\Api\Data\SourceInterface;
  9. /**
  10. * It is extension point for carrier links storage replacing (Service Provider Interface - SPI)
  11. * Provide own implementation of this interface if you would like to replace storage
  12. *
  13. * @api
  14. */
  15. interface SourceCarrierLinkManagementInterface
  16. {
  17. /**
  18. * Save carrier links by source
  19. *
  20. * Get carrier links from source object and save its. If carrier links are equal to null do nothing
  21. *
  22. * @param SourceInterface $source
  23. * @return void
  24. */
  25. public function saveCarrierLinksBySource(SourceInterface $source): void;
  26. /**
  27. * Load carrier links by source and set its to source object
  28. *
  29. * @param SourceInterface $source
  30. * @return void
  31. */
  32. public function loadCarrierLinksBySource(SourceInterface $source): void;
  33. }