AttributeLoaderInterface.php 534 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Model\Entity;
  7. use Magento\Framework\DataObject;
  8. /**
  9. * Interface AttributeLoaderInterface
  10. */
  11. interface AttributeLoaderInterface
  12. {
  13. /**
  14. * Retrieve configuration for all attributes
  15. *
  16. * @param AbstractEntity $resource
  17. * @param DataObject|null $entity
  18. * @return AbstractEntity
  19. */
  20. public function loadAllAttributes(AbstractEntity $resource, DataObject $entity = null);
  21. }