ReadInterface.php 585 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\EntityManager\Operation;
  7. use Magento\Framework\EntityManager\OperationInterface;
  8. /**
  9. * Interface for reading entity data
  10. */
  11. interface ReadInterface extends OperationInterface
  12. {
  13. /**
  14. * Read data and populate entity
  15. *
  16. * @param object $entity
  17. * @param string $identifier
  18. * @param array $arguments
  19. * @return object
  20. * @throws \Exception
  21. */
  22. public function execute($entity, $identifier, $arguments = []);
  23. }