Data.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Model\Data\Design\Config;
  7. use Magento\Framework\Api\AbstractExtensibleObject;
  8. use Magento\Theme\Api\Data\DesignConfigDataInterface;
  9. use Magento\Theme\Api\Data\DesignConfigDataExtensionInterface;
  10. class Data extends AbstractExtensibleObject implements DesignConfigDataInterface
  11. {
  12. /**
  13. * @inheritDoc
  14. */
  15. public function getPath()
  16. {
  17. return $this->_get(self::PATH);
  18. }
  19. /**
  20. * @inheritDoc
  21. */
  22. public function getValue()
  23. {
  24. return $this->_get(self::VALUE);
  25. }
  26. /**
  27. * @inheritDoc
  28. */
  29. public function getFieldConfig()
  30. {
  31. return $this->_get(self::FIELD_CONFIG);
  32. }
  33. /**
  34. * @inheritDoc
  35. */
  36. public function setValue($value)
  37. {
  38. return $this->setData(self::VALUE, $value);
  39. }
  40. /**
  41. * @inheritDoc
  42. */
  43. public function setPath($path)
  44. {
  45. return $this->setData(self::PATH, $path);
  46. }
  47. /**
  48. * @inheritDoc
  49. */
  50. public function setFieldConfig(array $config)
  51. {
  52. return $this->setData(self::FIELD_CONFIG, $config);
  53. }
  54. /**
  55. * @inheritDoc
  56. */
  57. public function getExtensionAttributes()
  58. {
  59. return $this->_getExtensionAttributes();
  60. }
  61. /**
  62. * @inheritDoc
  63. */
  64. public function setExtensionAttributes(DesignConfigDataExtensionInterface $extensionAttributes)
  65. {
  66. return $this->_setExtensionAttributes($extensionAttributes);
  67. }
  68. }