ToolInterface.php 553 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Code standard tool wrapper interface
  8. */
  9. namespace Magento\TestFramework\CodingStandard;
  10. interface ToolInterface
  11. {
  12. /**
  13. * Whether the tool can be ran on the current environment
  14. *
  15. * @return bool
  16. */
  17. public function canRun();
  18. /**
  19. * Run tool for files specified
  20. *
  21. * @param array $whiteList Files/directories to be inspected
  22. * @return int
  23. */
  24. public function run(array $whiteList);
  25. }