PHP Class Bolt\Version

Author: Carson Full ([email protected])
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
__construct ( ) Must not be instantiated.

Method Details

compare() public static méthode

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: <, <=, >, >=, ==, !=
Résultat boolean Whether the comparison succeeded.

forComposer() public static méthode

Returns a version formatted for composer.
public static forComposer ( ) : string
Résultat string

isStable() public static méthode

Whether this release is a stable one.
public static isStable ( ) : boolean
Résultat boolean

name() public static méthode

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