/** * @param ConstraintInterface $provider * * @return bool */ public function matches(ConstraintInterface $provider) { if ($provider instanceof MultiConstraint) { // turn matching around to find a match return $provider->matches($this); } if ($provider instanceof $this) { // see note at bottom of this class declaration return $this->matchSpecific($provider); } return true; }