Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PolicyInterface.php

interface PolicyInterface

@author Nils Adermann <naderman@naderman.de>

Hierarchy

  • interface \Composer\DependencyResolver\PolicyInterface

Expanded class hierarchy of PolicyInterface

All classes that implement PolicyInterface

1 file declares its use of PolicyInterface
Installer.php in vendor/composer/composer/src/Composer/Installer.php

File

vendor/composer/composer/src/Composer/DependencyResolver/PolicyInterface.php, line 21

Namespace

Composer\DependencyResolver
View source
interface PolicyInterface {
    
    /**
     * @phpstan-param Constraint::STR_OP_* $operator
     */
    public function versionCompare(PackageInterface $a, PackageInterface $b, string $operator) : bool;
    
    /**
     * @param  non-empty-list<int>   $literals
     * @return non-empty-list<int>
     */
    public function selectPreferredPackages(Pool $pool, array $literals, ?string $requiredPackage = null) : array;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PolicyInterface::selectPreferredPackages public function 1
PolicyInterface::versionCompare public function @phpstan-param Constraint::STR_OP_* $operator 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal