You are here

public function Constraint::matches in Automatic Updates 7

Parameters

ConstraintInterface $provider:

Return value

bool

Overrides ConstraintInterface::matches

File

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

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

public function matches(ConstraintInterface $provider) {
  if ($provider instanceof $this) {
    return $this
      ->matchSpecific($provider);
  }

  // turn matching around to find a match
  return $provider
    ->matches($this);
}