EntityProcessorInterface.php 849 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Sync;
  6. use Temando\Shipping\Sync\Exception\EventException;
  7. use Temando\Shipping\Sync\Exception\EventProcessorException;
  8. /**
  9. * Temando Entity Event Processor Interface
  10. *
  11. * @package Temando\Shipping\Sync
  12. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  13. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  14. * @link http://www.temando.com/
  15. */
  16. interface EntityProcessorInterface
  17. {
  18. /**
  19. * @param string $operation
  20. * @param string $externalEntityId
  21. * @return int Processed entity ID.
  22. * @throws EventException
  23. * @throws EventProcessorException
  24. */
  25. public function execute(string $operation, string $externalEntityId): int;
  26. }