메소드 |
설명 |
|
__construct ( string $currentVersion ) |
Version constructor. |
|
getGroup ( integer $value, integer $group = self::GROUP_INCREMENT ) : integer |
Get the value within a group (i.e. 1.0.3 => 1000300) |
|
getUpgrade ( integer $type = self::GROUP_PATCH ) : string |
Get the expected next version, based on upgrade type. |
|
isMajorUpgrade ( string $nextVersion ) : boolean |
Is this a major upgrade? (Semantic versioning) |
|
isMinorUpgrade ( string $nextVersion ) : boolean |
Is this a minor upgrade? (Semantic versioning) |
|
isPatchUpgrade ( string $nextVersion ) : boolean |
Is this a patch upgrade? (Semantic versioning) |
|
isUpgrade ( string $nextVersion ) : boolean |
Is $nextVersion newer than $this->currentVersion? |
|