GroupInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Customer\Api\Data;
  8. use Magento\Framework\Api\ExtensibleDataInterface;
  9. /**
  10. * Customer group interface.
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface GroupInterface extends ExtensibleDataInterface
  15. {
  16. /**#@+
  17. * Constants for keys of data array
  18. */
  19. const ID = 'id';
  20. const CODE = 'code';
  21. const TAX_CLASS_ID = 'tax_class_id';
  22. const TAX_CLASS_NAME = 'tax_class_name';
  23. const NOT_LOGGED_IN_ID = 0;
  24. const CUST_GROUP_ALL = 32000;
  25. const GROUP_CODE_MAX_LENGTH = 32;
  26. /**#@-*/
  27. /**
  28. * Get id
  29. *
  30. * @return int|null
  31. */
  32. public function getId();
  33. /**
  34. * Set id
  35. *
  36. * @param int $id
  37. * @return $this
  38. */
  39. public function setId($id);
  40. /**
  41. * Get code
  42. *
  43. * @return string
  44. */
  45. public function getCode();
  46. /**
  47. * Set code
  48. *
  49. * @param string $code
  50. * @return $this
  51. */
  52. public function setCode($code);
  53. /**
  54. * Get tax class id
  55. *
  56. * @return int
  57. */
  58. public function getTaxClassId();
  59. /**
  60. * Set tax class id
  61. *
  62. * @param int $taxClassId
  63. * @return $this
  64. */
  65. public function setTaxClassId($taxClassId);
  66. /**
  67. * Get tax class name
  68. *
  69. * @return string|null
  70. */
  71. public function getTaxClassName();
  72. /**
  73. * Set tax class name
  74. *
  75. * @param string $taxClassName
  76. * @return string|null
  77. */
  78. public function setTaxClassName($taxClassName);
  79. /**
  80. * Retrieve existing extension attributes object or create a new one.
  81. *
  82. * @return \Magento\Customer\Api\Data\GroupExtensionInterface|null
  83. */
  84. public function getExtensionAttributes();
  85. /**
  86. * Set an extension attributes object.
  87. *
  88. * @param \Magento\Customer\Api\Data\GroupExtensionInterface $extensionAttributes
  89. * @return $this
  90. */
  91. public function setExtensionAttributes(\Magento\Customer\Api\Data\GroupExtensionInterface $extensionAttributes);
  92. }