OrderDateInterface.php 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * Order Info Date Formatter Interface
  8. *
  9. * @package Temando\Shipping\ViewModel
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link https://www.temando.com/
  13. */
  14. interface OrderDateInterface
  15. {
  16. /**
  17. * @param string $date
  18. * @return \DateTime
  19. */
  20. public function getDate(string $date): \DateTime;
  21. /**
  22. * @param string $date
  23. * @param int $storeId
  24. * @return string
  25. */
  26. public function getStoreDate(string $date, int $storeId): string;
  27. /**
  28. * @param string $date
  29. * @return string
  30. */
  31. public function getAdminDate(string $date): string;
  32. /**
  33. * @param int $storeId
  34. * @return string
  35. */
  36. public function getStoreTimezone(int $storeId): string;
  37. }