PHP Class Doctrine\ORM\Version

Since: 2.0
Author: Benjamin Eberlei ([email protected])
Author: Guilherme Blanco ([email protected])
Author: Jonathan Wage ([email protected])
Author: Roman Borschel ([email protected])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Méthodes publiques

Méthode Description
compare ( string $version ) : integer Compares a Doctrine version with the current one.

Method Details

compare() public static méthode

Compares a Doctrine version with the current one.
public static compare ( string $version ) : integer
$version string Doctrine version to compare.
Résultat integer Returns -1 if older, 0 if it is the same, 1 if version passed as argument is newer.