ElementDiffAwareInterface.php 748 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup\Declaration\Schema\Dto;
  7. /**
  8. * Element diff provider interface.
  9. *
  10. * This interface provides all params, that should participate in elements comparison.
  11. */
  12. interface ElementDiffAwareInterface
  13. {
  14. /**
  15. * Return sensitive params, with respect of which we will compare db and xml
  16. * For instance,
  17. * padding => '2'
  18. * identity => null
  19. *
  20. * Such params as name, renamedTo, disabled, tableName should be avoided here.
  21. * As this params are system and must not participate in comparison at all.
  22. *
  23. * @return array
  24. */
  25. public function getDiffSensitiveParams();
  26. }