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

Breadcrumb

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

function Constraint::matches

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php \PHPUnit\Framework\Constraint\Constraint::matches()

Parameters

ConstraintInterface $provider:

Return value

bool

Overrides ConstraintInterface::matches

File

vendor/composer/semver/src/Constraint/Constraint.php, line 134

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

public function matches(ConstraintInterface $provider) {
    if ($provider instanceof self) {
        return $this->matchSpecific($provider);
    }
    // turn matching around to find a match
    return $provider->matches($this);
}

API Navigation

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