OptionLabel.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Model\Entity\Attribute;
  7. use Magento\Eav\Api\Data\AttributeOptionLabelInterface;
  8. use Magento\Framework\Model\AbstractModel;
  9. /**
  10. * Entity attribute option label model
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class OptionLabel extends AbstractModel implements AttributeOptionLabelInterface
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function getLabel()
  20. {
  21. return $this->getData(self::LABEL);
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getStoreId()
  27. {
  28. return $this->getData(self::STORE_ID);
  29. }
  30. /**
  31. * Set store id
  32. *
  33. * @param int $storeId
  34. * @return $this
  35. */
  36. public function setStoreId($storeId)
  37. {
  38. return $this->setData(self::STORE_ID, $storeId);
  39. }
  40. /**
  41. * Set option label
  42. *
  43. * @param string $label
  44. * @return $this
  45. */
  46. public function setLabel($label)
  47. {
  48. return $this->setData(self::LABEL, $label);
  49. }
  50. }