Comparator
in package
Table of Contents
Methods
- 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
boolequalTo()
Evaluates the expression: $version1 == $version2.
public
static equalTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
boolgreaterThan()
Evaluates the expression: $version1 > $version2.
public
static greaterThan(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
boolgreaterThanOrEqualTo()
Evaluates the expression: $version1 >= $version2.
public
static greaterThanOrEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
boollessThan()
Evaluates the expression: $version1 < $version2.
public
static lessThan(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
boollessThanOrEqualTo()
Evaluates the expression: $version1 <= $version2.
public
static lessThanOrEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string
Return values
boolnotEqualTo()
Evaluates the expression: $version1 != $version2.
public
static notEqualTo(string $version1, string $version2) : bool
Parameters
- $version1 : string
- $version2 : string