Comparator
in package
Table of Contents
- compare() : bool
- Evaluates the expression: $version1 $operator $version2.
- equalTo() : bool
- Evaluates the expression: $version1 == $version2.
- greaterThan() : bool
- Evaluates the expression: $version1 > $version2.
- greaterThanOrEqualTo() : bool
- Evaluates the expression: $version1 >= $version2.
- lessThan() : bool
- Evaluates the expression: $version1 < $version2.
- lessThanOrEqualTo() : bool
- Evaluates the expression: $version1 <= $version2.
- notEqualTo() : bool
- Evaluates the expression: $version1 != $version2.
Methods
compare()
Evaluates the expression: $version1 $operator $version2.
public
static compare(string $version1, string $operator, string $version2) : bool
Parameters
- $version1 : string
- $operator : string
- $version2 : string
Tags
Return values
bool —equalTo()
Evaluates the expression: $version1 == $version2.
public
static equalTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
bool —greaterThan()
Evaluates the expression: $version1 > $version2.
public
static greaterThan(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
bool —greaterThanOrEqualTo()
Evaluates the expression: $version1 >= $version2.
public
static greaterThanOrEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
bool —lessThan()
Evaluates the expression: $version1 < $version2.
public
static lessThan(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
bool —lessThanOrEqualTo()
Evaluates the expression: $version1 <= $version2.
public
static lessThanOrEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
bool —notEqualTo()
Evaluates the expression: $version1 != $version2.
public
static notEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string