Baleen\Migrations\Delta\Delta\Delta\Comparator\ComparatorInterface

interface ComparatorInterface

Compares two version with each other.

__invoke(DeltaInterface $version1, DeltaInterface $version2)

Compares two versions with each other. The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

Parameters:
Returns:

int

reverse()

Returns a reversed version of the comparator

Returns:$this