StoreInterface.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Api\Data;
  7. /**
  8. * Store interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface StoreInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * @return int
  17. */
  18. public function getId();
  19. /**
  20. * @param int $id
  21. * @return $this
  22. */
  23. public function setId($id);
  24. /**
  25. * @return string
  26. */
  27. public function getCode();
  28. /**
  29. * @param string $code
  30. * @return $this
  31. */
  32. public function setCode($code);
  33. /**
  34. * Retrieve store name
  35. *
  36. * @return string
  37. */
  38. public function getName();
  39. /**
  40. * Set store name
  41. *
  42. * @param string $name
  43. * @return $this
  44. */
  45. public function setName($name);
  46. /**
  47. * @return int
  48. */
  49. public function getWebsiteId();
  50. /**
  51. * @param int $websiteId
  52. * @return $this
  53. */
  54. public function setWebsiteId($websiteId);
  55. /**
  56. * @return int
  57. */
  58. public function getStoreGroupId();
  59. /**
  60. * @param int $isActive
  61. * @return $this
  62. * @since 101.0.0
  63. */
  64. public function setIsActive($isActive);
  65. /**
  66. * @return int
  67. * @since 101.0.0
  68. */
  69. public function getIsActive();
  70. /**
  71. * @param int $storeGroupId
  72. * @return $this
  73. */
  74. public function setStoreGroupId($storeGroupId);
  75. /**
  76. * Retrieve existing extension attributes object or create a new one.
  77. *
  78. * @return \Magento\Store\Api\Data\StoreExtensionInterface|null
  79. */
  80. public function getExtensionAttributes();
  81. /**
  82. * Set an extension attributes object.
  83. *
  84. * @param \Magento\Store\Api\Data\StoreExtensionInterface $extensionAttributes
  85. * @return $this
  86. */
  87. public function setExtensionAttributes(
  88. \Magento\Store\Api\Data\StoreExtensionInterface $extensionAttributes
  89. );
  90. }