PolicyInterface.php 746 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\Package\PackageInterface;
  13. /**
  14. * @author Nils Adermann <naderman@naderman.de>
  15. */
  16. interface PolicyInterface
  17. {
  18. public function versionCompare(PackageInterface $a, PackageInterface $b, $operator);
  19. public function findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package);
  20. public function selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null);
  21. }