WebsiteInterface.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. * Website interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface WebsiteInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * contains code of admin website
  17. */
  18. const ADMIN_CODE = 'admin';
  19. /**
  20. * @return int
  21. */
  22. public function getId();
  23. /**
  24. * @param int $id
  25. * @return $this
  26. */
  27. public function setId($id);
  28. /**
  29. * @return string
  30. */
  31. public function getCode();
  32. /**
  33. * @param string $code
  34. * @return $this
  35. */
  36. public function setCode($code);
  37. /**
  38. * Retrieve website name
  39. *
  40. * @return string
  41. */
  42. public function getName();
  43. /**
  44. * Set website name
  45. *
  46. * @param string $name
  47. * @return $this
  48. */
  49. public function setName($name);
  50. /**
  51. * @return int
  52. */
  53. public function getDefaultGroupId();
  54. /**
  55. * @param int $defaultGroupId
  56. * @return $this
  57. */
  58. public function setDefaultGroupId($defaultGroupId);
  59. /**
  60. * Retrieve existing extension attributes object or create a new one.
  61. *
  62. * @return \Magento\Store\Api\Data\WebsiteExtensionInterface|null
  63. */
  64. public function getExtensionAttributes();
  65. /**
  66. * Set an extension attributes object.
  67. *
  68. * @param \Magento\Store\Api\Data\WebsiteExtensionInterface $extensionAttributes
  69. * @return $this
  70. */
  71. public function setExtensionAttributes(
  72. \Magento\Store\Api\Data\WebsiteExtensionInterface $extensionAttributes
  73. );
  74. }