TaxClassKeyInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Api\Data;
  7. use Magento\Framework\Api\ExtensibleDataInterface;
  8. /**
  9. * Tax class key interface.
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TaxClassKeyInterface extends ExtensibleDataInterface
  14. {
  15. /**#@+
  16. * Constants defined for type of tax class key
  17. */
  18. const TYPE_ID = 'id';
  19. const TYPE_NAME = 'name';
  20. /**#@-*/
  21. /**
  22. * Get type of tax class key
  23. *
  24. * @return string
  25. */
  26. public function getType();
  27. /**
  28. * Set type of tax class key
  29. *
  30. * @param string $type
  31. * @return $this
  32. */
  33. public function setType($type);
  34. /**
  35. * Get value of tax class key
  36. *
  37. * @return string
  38. */
  39. public function getValue();
  40. /**
  41. * Set value of tax class key
  42. *
  43. * @param string $value
  44. * @return $this
  45. */
  46. public function setValue($value);
  47. /**
  48. * Retrieve existing extension attributes object or create a new one.
  49. *
  50. * @return \Magento\Tax\Api\Data\TaxClassKeyExtensionInterface|null
  51. */
  52. public function getExtensionAttributes();
  53. /**
  54. * Set an extension attributes object.
  55. *
  56. * @param \Magento\Tax\Api\Data\TaxClassKeyExtensionInterface $extensionAttributes
  57. * @return $this
  58. */
  59. public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxClassKeyExtensionInterface $extensionAttributes);
  60. }