PHP Интерфейс Liip\RMT\Version\Generator\GeneratorInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
__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 ( )

Описание методов

__construct() публичный Метод

public __construct ( $options = [] )

compareTwoVersions() публичный Метод

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
Результат integer

generateNextVersion() публичный Метод

Return the next version number, according to the current one and optional options
public generateNextVersion ( string $currentVersion ) : string
$currentVersion string
Результат string

getInformationRequests() публичный Метод

getInitialVersion() публичный Метод

public getInitialVersion ( )

getValidationRegex() публичный Метод

public getValidationRegex ( )