class VersionParser extends VersionParser (View source)

Methods

parseConstraints($constraints)

{@inheritDoc}

array[]
parseNameVersionPairs(array $pairs)

Parses an array of strings representing package/version pairs.

static bool
isUpgrade($normalizedFrom, $normalizedTo)

No description

Details

parseConstraints($constraints)

{@inheritDoc}

Parameters

$constraints

array[] parseNameVersionPairs(array $pairs)

Parses an array of strings representing package/version pairs.

The parsing results in an array of arrays, each of which contain a 'name' key with value and optionally a 'version' key with value.

Parameters

array $pairs a set of package/version pairs separated by ":", "=" or " "

Return Value

array[] array of arrays containing a name and (if provided) a version

static bool isUpgrade($normalizedFrom, $normalizedTo)

Parameters

$normalizedFrom
$normalizedTo

Return Value

bool