StoreCookieManagerInterface.php 646 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Store\Api;
  8. use Magento\Store\Api\Data\StoreInterface;
  9. /**
  10. * Store cookie manager interface
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface StoreCookieManagerInterface
  16. {
  17. /**
  18. * @return string
  19. */
  20. public function getStoreCodeFromCookie();
  21. /**
  22. * @param StoreInterface $store
  23. * @return void
  24. */
  25. public function setStoreCookie(StoreInterface $store);
  26. /**
  27. * @param StoreInterface $store
  28. * @return void
  29. */
  30. public function deleteStoreCookie(StoreInterface $store);
  31. }