PolicyInterface.php 844 B

123456789101112131415161718192021222324252627
  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\DependencyResolver;
  12. use Composer\Repository\RepositoryInterface;
  13. use Composer\Package\PackageInterface;
  14. /**
  15. * @author Nils Adermann <naderman@naderman.de>
  16. */
  17. interface PolicyInterface
  18. {
  19. function versionCompare(PackageInterface $a, PackageInterface $b, $operator);
  20. function findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package);
  21. function installable(Solver $solver, Pool $pool, array $installedMap, PackageInterface $package);
  22. function selectPreferedPackages(Pool $pool, array $installedMap, array $literals);
  23. }