EntityUrlInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\ViewModel\DataProvider;
  6. /**
  7. * CRUD Actions URL Provider Interface
  8. *
  9. * @package Temando\Shipping\ViewModel
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. interface EntityUrlInterface
  15. {
  16. /**
  17. * @return string
  18. */
  19. public function getNewActionUrl(): string;
  20. /**
  21. * @return string
  22. */
  23. public function getListActionUrl(): string;
  24. /**
  25. * @param mixed[] $data Item data for the implementer to pick entity identifier.
  26. * @return string
  27. */
  28. public function getViewActionUrl(array $data): string;
  29. /**
  30. * @param mixed[] $data Item data for the implementer to pick entity identifier.
  31. * @return string
  32. */
  33. public function getEditActionUrl(array $data): string;
  34. /**
  35. * @param mixed[] $data Item data for the implementer to pick entity identifier.
  36. * @return string
  37. */
  38. public function getDeleteActionUrl(array $data): string;
  39. }