PHP 인터페이스 Liip\RMT\Version\Generator\GeneratorInterface

파일 보기 프로젝트 열기: liip/rmt

공개 메소드들

메소드 설명
__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 ( )