IdentityInterface.php 472 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\DataObject;
  7. /**
  8. * Interface for
  9. * 1. models which require cache refresh when it is created/updated/deleted
  10. * 2. blocks which render this information to front-end
  11. */
  12. interface IdentityInterface
  13. {
  14. /**
  15. * Return unique ID(s) for each object in system
  16. *
  17. * @return string[]
  18. */
  19. public function getIdentities();
  20. }