PHP Class Bolt\Version

Author: Carson Full ([email protected])
Datei anzeigen Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
compare ( string $version, string $operator ) : boolean Compares a version to Bolt's version.
forComposer ( ) : string Returns a version formatted for composer.
isStable ( ) : boolean Whether this release is a stable one.
name ( ) : string | null

Private Methods

Method Description
__construct ( ) Must not be instantiated.

Method Details

compare() public static method

Compares a version to Bolt's version.
public static compare ( string $version, string $operator ) : boolean
$version string The version to compare.
$operator string The comparison operator: <, <=, >, >=, ==, !=
return boolean Whether the comparison succeeded.

forComposer() public static method

Returns a version formatted for composer.
public static forComposer ( ) : string
return string

isStable() public static method

Whether this release is a stable one.
public static isStable ( ) : boolean
return boolean

name() public static method

Deprecation: since 3.0, to be removed in 4.0.
public static name ( ) : string | null
return string | null