Liip\RMT\Version\Generator\GeneratorInterface::compareTwoVersions PHP Method

compareTwoVersions() public method

Function used to compare two versions. Must return: * -1 if $a is older than $b * 0 if $a and $b are the same * 1 if $a is more recent than $b
public compareTwoVersions ( string $a, string $b ) : integer
$a string
$b string
return integer
    public function compareTwoVersions($a, $b);