EntityInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Interface EntityInterface
  9. * @api
  10. * @since 100.1.2
  11. */
  12. interface EntityInterface
  13. {
  14. /*
  15. * Entity ID.
  16. */
  17. const ENTITY_ID = 'entity_id';
  18. /*
  19. * Created-at timestamp.
  20. */
  21. const CREATED_AT = 'created_at';
  22. /**
  23. * Gets the created-at timestamp for the invoice.
  24. *
  25. * @return string|null Created-at timestamp.
  26. * @since 100.1.2
  27. */
  28. public function getCreatedAt();
  29. /**
  30. * Sets the created-at timestamp for the invoice.
  31. *
  32. * @param string $createdAt timestamp
  33. * @return $this
  34. * @since 100.1.2
  35. */
  36. public function setCreatedAt($createdAt);
  37. /**
  38. * Gets the ID for the invoice.
  39. *
  40. * @return int|null Invoice ID.
  41. * @since 100.1.2
  42. */
  43. public function getEntityId();
  44. /**
  45. * Sets entity ID.
  46. *
  47. * @param int $entityId
  48. * @return $this
  49. * @since 100.1.2
  50. */
  51. public function setEntityId($entityId);
  52. }