\Composer\SemverComparator

Summary

Methods
Properties
Constants
greaterThan()
greaterThanOrEqualTo()
lessThan()
lessThanOrEqualTo()
equalTo()
notEqualTo()
compare()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

greaterThan()

greaterThan(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 > $version2.

Parameters

string $version1
string $version2

Returns

boolean

greaterThanOrEqualTo()

greaterThanOrEqualTo(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 >= $version2.

Parameters

string $version1
string $version2

Returns

boolean

lessThan()

lessThan(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 < $version2.

Parameters

string $version1
string $version2

Returns

boolean

lessThanOrEqualTo()

lessThanOrEqualTo(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 <= $version2.

Parameters

string $version1
string $version2

Returns

boolean

equalTo()

equalTo(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 == $version2.

Parameters

string $version1
string $version2

Returns

boolean

notEqualTo()

notEqualTo(string  $version1, string  $version2) : boolean

Evaluates the expression: $version1 != $version2.

Parameters

string $version1
string $version2

Returns

boolean

compare()

compare(string  $version1, string  $operator, string  $version2) : boolean

Evaluates the expression: $version1 $operator $version2.

Parameters

string $version1
string $operator
string $version2

Returns

boolean