PreReleaseSuffix
Table of Contents
Constants
-
valueScoreMap
= ['dev' => 0, 'a' => 1, 'alpha' => 1, 'b' => 2, 'beta' => 2, 'rc' => 3, 'p' => 4, 'pl' => 4, 'patch' => 4]
Properties
-
$full
: string
-
$number
: int
-
$value
: string
-
$valueScore
: int
Methods
-
__construct()
: mixed
-
asString()
: string
-
getNumber()
: int|null
-
getValue()
: string
-
isGreaterThan()
: bool
-
mapValueToScore()
: int
-
parseValue()
: void
valueScoreMap
private
mixed
valueScoreMap
= ['dev' => 0, 'a' => 1, 'alpha' => 1, 'b' => 2, 'beta' => 2, 'rc' => 3, 'p' => 4, 'pl' => 4, 'patch' => 4]
$full
private
string
$full
$number
private
int
$number
= 0
$value
private
string
$value
$valueScore
private
int
$valueScore
__construct()
public
__construct(string $value) : mixed
Parameters
-
$value
: string
-
-
throws
-
InvalidPreReleaseSuffixException
asString()
public
asString() : string
getNumber()
public
getNumber() : int|null
getValue()
public
getValue() : string
isGreaterThan()
public
isGreaterThan(PreReleaseSuffix $suffix) : bool
Parameters
-
$suffix
: PreReleaseSuffix
-
mapValueToScore()
private
mapValueToScore(string $value) : int
Parameters
-
$value
: string
-
parseValue()
private
parseValue(string $value) : void
Parameters
-
$value
: string
-