Group.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Model\Data;
  7. /**
  8. * Customer Group data model.
  9. */
  10. class Group extends \Magento\Framework\Api\AbstractExtensibleObject implements
  11. \Magento\Customer\Api\Data\GroupInterface
  12. {
  13. /**
  14. * Get ID
  15. *
  16. * @return int
  17. */
  18. public function getId()
  19. {
  20. return $this->_get(self::ID);
  21. }
  22. /**
  23. * Get code
  24. *
  25. * @return string
  26. */
  27. public function getCode()
  28. {
  29. return $this->_get(self::CODE);
  30. }
  31. /**
  32. * Get tax class ID
  33. *
  34. * @return int
  35. */
  36. public function getTaxClassId()
  37. {
  38. return $this->_get(self::TAX_CLASS_ID);
  39. }
  40. /**
  41. * Get tax class name
  42. *
  43. * @return string
  44. */
  45. public function getTaxClassName()
  46. {
  47. return $this->_get(self::TAX_CLASS_NAME);
  48. }
  49. /**
  50. * Set id
  51. *
  52. * @param int $id
  53. * @return $this
  54. */
  55. public function setId($id)
  56. {
  57. return $this->setData(self::ID, $id);
  58. }
  59. /**
  60. * Set code
  61. *
  62. * @param string $code
  63. * @return $this
  64. */
  65. public function setCode($code)
  66. {
  67. return $this->setData(self::CODE, $code);
  68. }
  69. /**
  70. * Set tax class id
  71. *
  72. * @param int $taxClassId
  73. * @return $this
  74. */
  75. public function setTaxClassId($taxClassId)
  76. {
  77. return $this->setData(self::TAX_CLASS_ID, $taxClassId);
  78. }
  79. /**
  80. * Set tax class name
  81. *
  82. * @param string $taxClassName
  83. * @return string|null
  84. */
  85. public function setTaxClassName($taxClassName)
  86. {
  87. return $this->setData(self::TAX_CLASS_NAME, $taxClassName);
  88. }
  89. /**
  90. * {@inheritdoc}
  91. *
  92. * @return \Magento\Customer\Api\Data\GroupExtensionInterface|null
  93. */
  94. public function getExtensionAttributes()
  95. {
  96. return $this->_getExtensionAttributes();
  97. }
  98. /**
  99. * {@inheritdoc}
  100. *
  101. * @param \Magento\Customer\Api\Data\GroupExtensionInterface $extensionAttributes
  102. * @return $this
  103. */
  104. public function setExtensionAttributes(\Magento\Customer\Api\Data\GroupExtensionInterface $extensionAttributes)
  105. {
  106. return $this->_setExtensionAttributes($extensionAttributes);
  107. }
  108. }