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

Breadcrumb

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

function ConstraintInterface::matches

Checks whether the given constraint intersects in any way with this constraint

Parameters

ConstraintInterface $provider:

Return value

bool

4 methods override ConstraintInterface::matches()
Constraint::matches in vendor/composer/semver/src/Constraint/Constraint.php
MatchAllConstraint::matches in vendor/composer/semver/src/Constraint/MatchAllConstraint.php
MatchNoneConstraint::matches in vendor/composer/semver/src/Constraint/MatchNoneConstraint.php
MultiConstraint::matches in vendor/composer/semver/src/Constraint/MultiConstraint.php

File

vendor/composer/semver/src/Constraint/ConstraintInterface.php, line 29

Class

ConstraintInterface
DO NOT IMPLEMENT this interface. It is only meant for usage as a type hint in libraries relying on composer/semver but creating your own constraint class that implements this interface is not a supported use case and will cause the composer/semver…

Namespace

Composer\Semver\Constraint

Code

public function matches(ConstraintInterface $provider);

API Navigation

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