VersionCheckResult

Class
Read only: Yes Final: Yes

Describes the installed and latest known DevTools versions.

Table of Contents

Properties

Methods

 : mixed
getCurrentVersion()

Returns the currently installed DevTools version.

 : string
getLatestVersion()

Returns the latest stable DevTools version known to Composer.

 : string
isOutdated()

Detects whether the installed version is older than the latest stable version.

 : bool
normalize()

Normalizes common Composer tag prefixes before version comparison.

 : string
Properties
Methods

__construct()

Public
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

getCurrentVersion()

Public

Returns the currently installed DevTools version.

public getCurrentVersion() : string
Return values
string

getLatestVersion()

Public

Returns the latest stable DevTools version known to Composer.

public getLatestVersion() : string
Return values
string

isOutdated()

Public

Detects whether the installed version is older than the latest stable version.

public isOutdated() : bool
Return values
bool

normalize()

Private

Normalizes common Composer tag prefixes before version comparison.

private normalize( string  $version) : string
Parameters
$version : string

Description

the version string returned by Composer metadata

Return values
string