Config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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;
  7. use Magento\Framework\Api\AbstractExtensibleObject;
  8. use Magento\Theme\Api\Data\DesignConfigInterface;
  9. class Config extends AbstractExtensibleObject implements DesignConfigInterface
  10. {
  11. /**
  12. * Design config grid indexer id
  13. */
  14. const DESIGN_CONFIG_GRID_INDEXER_ID = 'design_config_grid';
  15. /**
  16. * @inheritDoc
  17. */
  18. public function getScope()
  19. {
  20. return $this->_get(self::SCOPE);
  21. }
  22. /**
  23. * @inheritDoc
  24. */
  25. public function getScopeId()
  26. {
  27. return $this->_get(self::SCOPE_ID);
  28. }
  29. /**
  30. * @inheritDoc
  31. */
  32. public function setScope($scope)
  33. {
  34. return $this->setData(self::SCOPE, $scope);
  35. }
  36. /**
  37. * @inheritDoc
  38. */
  39. public function setScopeId($scopeId = null)
  40. {
  41. return $this->setData(self::SCOPE_ID, $scopeId);
  42. }
  43. /**
  44. * @inheritDoc
  45. */
  46. public function getExtensionAttributes()
  47. {
  48. return $this->_getExtensionAttributes();
  49. }
  50. /**
  51. * @inheritDoc
  52. */
  53. public function setExtensionAttributes(\Magento\Theme\Api\Data\DesignConfigExtensionInterface $extensionAttributes)
  54. {
  55. return $this->_setExtensionAttributes($extensionAttributes);
  56. }
  57. }