Version
in package
Class to store and retrieve the version of Doctrine
Tags
Table of Contents
Constants
- VERSION = '2.7.1-DEV'
- Current Doctrine Version
Methods
- compare() : int
- Compares a Doctrine version with the current one.
Constants
VERSION
Current Doctrine Version
public
mixed
VERSION
= '2.7.1-DEV'
Methods
compare()
Compares a Doctrine version with the current one.
public
static compare(string $version) : int
Parameters
- $version : string
-
Doctrine version to compare.
Return values
int —Returns -1 if older, 0 if it is the same, 1 if version passed as argument is newer.