PHP Interface Liip\RMT\Version\Generator\GeneratorInterface

Show file Open project: liip/rmt

Public Methods

Method Description
__construct ( $options = [] )
compareTwoVersions ( string $a, string $b ) : integer 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
generateNextVersion ( string $currentVersion ) : string Return the next version number, according to the current one and optional options
getInformationRequests ( )
getInitialVersion ( )
getValidationRegex ( )

Method Details

__construct() public method

public __construct ( $options = [] )

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

generateNextVersion() public method

Return the next version number, according to the current one and optional options
public generateNextVersion ( string $currentVersion ) : string
$currentVersion string
return string

getInformationRequests() public method

getInitialVersion() public method

public getInitialVersion ( )

getValidationRegex() public method

public getValidationRegex ( )