RuleInterface.php 700 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Rule for searching dependencies in layout files
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\TestFramework\Dependency;
  9. interface RuleInterface
  10. {
  11. /**
  12. * Types of dependencies between modules
  13. */
  14. const TYPE_SOFT = 'soft';
  15. const TYPE_HARD = 'hard';
  16. /**
  17. * Gets alien dependencies information for current module by analyzing file's contents
  18. *
  19. * @param string $currentModule
  20. * @param string $fileType
  21. * @param string $file
  22. * @param string $contents
  23. * @return array
  24. */
  25. public function getDependencyInfo($currentModule, $fileType, $file, &$contents);
  26. }