LoaderInterface.php 806 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Fgm\ComposerCheck;
  3. /**
  4. * Interface LoaderInterface defined the Loader classes contract.
  5. */
  6. interface LoaderInterface {
  7. /**
  8. * LoaderInterface constructor.
  9. *
  10. * @param string $directory
  11. * The directory from which to load a composer file.
  12. */
  13. public function __construct(string $directory);
  14. /**
  15. * Get the dev packages array.
  16. *
  17. * @return mixed
  18. * An array of requirements, indexed by lower-cased requirement name.
  19. */
  20. public function getDev();
  21. /**
  22. * Get the run-time packages array.
  23. *
  24. * @return mixed
  25. * An array of requirements, indexed by lower-cased requirement name.
  26. */
  27. public function getRun();
  28. /**
  29. * Load the file.
  30. */
  31. public function load();
  32. /**
  33. * Parse the loaded data.
  34. */
  35. public function parse();
  36. }