DocumentInterface.php 524 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Api\Search;
  7. use Magento\Framework\Api\CustomAttributesDataInterface;
  8. /**
  9. * Interface \Magento\Framework\Api\Search\DocumentInterface
  10. *
  11. */
  12. interface DocumentInterface extends CustomAttributesDataInterface
  13. {
  14. const ID = 'id';
  15. /**
  16. * @return int
  17. */
  18. public function getId();
  19. /**
  20. * @param int $id
  21. * @return $this
  22. */
  23. public function setId($id);
  24. }