WordPress at a glance
function is not described

Composer

InstalledVersions::satisfies() public WC 1.0

{} It's a method of the class: InstalledVersions{}

No Hooks.

Return

Null. Nothing.

Usage

$result = InstalledVersions::satisfies( $parser, $packageName, $constraint );
$parser(VersionParser) (required)
-
$packageName (required)
-
$constraint (required)
-

Code of InstalledVersions::satisfies() WC 5.0.0

<?php
public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));

return $provided->matches($constraint);
}