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