PHP Class PhpBrew\Version

- 5.3 => php-5.3.29 (get the latest patched version) - 5.3.29 => php-5.3.29 - php-5.4 => php-5.4.26 - hhvm-3.3 => hhvm-3.3 TODO: - Parse stability
Mostrar archivo Open project: phpbrew/phpbrew Class Usage Examples

Public Properties

Property Type Description
$dist
$version version string

Protected Properties

Property Type Description
$majorVersion
$minorVersion
$patchVersion

Public Methods

Method Description
__construct ( $a, $dist = null ) can be hhvm
__toString ( )
compare ( $b )
findLatestPatchVersion ( $currentVersion, array $versions )
getCanonicalizedVersionName ( ) : string
getDist ( )
getMajorVersion ( )
getMinorVersion ( )
getPatchVersion ( )
getVersion ( )
hasPatchVersion ( $version )
setVersion ( $version )
upgradePatchVersion ( array $availableVersions )

Method Details

__construct() public method

can be hhvm
public __construct ( $a, $dist = null )

__toString() public method

public __toString ( )

compare() public method

public compare ( $b )

findLatestPatchVersion() public static method

public static findLatestPatchVersion ( $currentVersion, array $versions )
$versions array

getCanonicalizedVersionName() public method

public getCanonicalizedVersionName ( ) : string
return string the version string, php-5.3.29, php-5.4.2 without prefix

getDist() public method

public getDist ( )

getMajorVersion() public method

public getMajorVersion ( )

getMinorVersion() public method

public getMinorVersion ( )

getPatchVersion() public method

public getPatchVersion ( )

getVersion() public method

public getVersion ( )

hasPatchVersion() public static method

public static hasPatchVersion ( $version )

setVersion() public method

public setVersion ( $version )

upgradePatchVersion() public method

public upgradePatchVersion ( array $availableVersions )
$availableVersions array

Property Details

$dist public_oe property

public $dist

$majorVersion protected_oe property

protected $majorVersion

$minorVersion protected_oe property

protected $minorVersion

$patchVersion protected_oe property

protected $patchVersion

$version public_oe property

version string
public $version