VersionCheckResult
Describes the installed and latest known DevTools versions.
Properties
Methods
Returns the currently installed DevTools version.
Returns the latest stable DevTools version known to Composer.
Detects whether the installed version is older than the latest stable version.
Normalizes common Composer tag prefixes before version comparison.
public
__construct(
string
$currentVersion,
string
$latestVersion) : mixed
Parameters
$currentVersion
:
string
Description
the currently installed DevTools version
$latestVersion
:
string
Description
the latest stable DevTools version known to Composer
Returns the currently installed DevTools version.
public
getCurrentVersion() : string
Return values
Returns the latest stable DevTools version known to Composer.
public
getLatestVersion() : string
Return values
Detects whether the installed version is older than the latest stable version.
public
isOutdated() : bool
Return values
Normalizes common Composer tag prefixes before version comparison.
private
normalize(
string
$version) : string
Parameters
$version
:
string
Description
the version string returned by Composer metadata