PHP Class Doctrine\OXM\Version

Since: 2.0
Author: Richard Fullmer ([email protected])
Afficher le fichier Open project: doctrine/oxm

Méthodes publiques

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

Method Details

compare() public static méthode

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