LoaderInterface.php 739 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. }