RootPackageInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Package;
  12. /**
  13. * Defines additional fields that are only needed for the root package
  14. *
  15. * @author Jordi Boggiano <j.boggiano@seld.be>
  16. */
  17. interface RootPackageInterface extends CompletePackageInterface
  18. {
  19. /**
  20. * Returns a set of package names and theirs aliases
  21. *
  22. * @return array
  23. */
  24. public function getAliases();
  25. /**
  26. * Returns the minimum stability of the package
  27. *
  28. * @return string
  29. */
  30. public function getMinimumStability();
  31. /**
  32. * Returns the stability flags to apply to dependencies
  33. *
  34. * array('foo/bar' => 'dev')
  35. *
  36. * @return array
  37. */
  38. public function getStabilityFlags();
  39. /**
  40. * Returns a set of package names and source references that must be enforced on them
  41. *
  42. * array('foo/bar' => 'abcd1234')
  43. *
  44. * @return array
  45. */
  46. public function getReferences();
  47. }