CustomAttributeDataObject.php 823 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModuleMSC\Model\Data;
  7. use Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface;
  8. use Magento\Framework\Api\AbstractExtensibleObject;
  9. /**
  10. * Class CustomAttributeDataObject
  11. *
  12. * @method \Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectExtensionInterface getExtensionAttributes()
  13. */
  14. class CustomAttributeDataObject extends AbstractExtensibleObject implements CustomAttributeDataObjectInterface
  15. {
  16. /**
  17. * @return string
  18. */
  19. public function getName()
  20. {
  21. return $this->_data['name'];
  22. }
  23. /**
  24. * @param string $name
  25. * @return $this
  26. */
  27. public function setName($name)
  28. {
  29. return $this->setData('name', $name);
  30. }
  31. }