EntityMetadata.php 618 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search;
  7. /**
  8. * Entity metadata
  9. * @api
  10. * @since 100.0.2
  11. */
  12. class EntityMetadata
  13. {
  14. /**
  15. * @var string
  16. */
  17. private $entityId;
  18. /**
  19. * @param string $entityId
  20. * @codeCoverageIgnore
  21. */
  22. public function __construct($entityId)
  23. {
  24. $this->entityId = $entityId;
  25. }
  26. /**
  27. * Get entity id
  28. *
  29. * @return string
  30. * @codeCoverageIgnore
  31. */
  32. public function getEntityId()
  33. {
  34. return $this->entityId;
  35. }
  36. }