PreReleaseSuffix
Table of Contents
-
valueScoreMap
= ['dev' => 0, 'a' => 1, 'alpha' => 1, 'b' => 2, 'beta' => 2, 'rc' => 3, 'p' => 4, 'pl' => 4, 'patch' => 4]
-
$full
: string
-
$number
: int
-
$value
: string
-
$valueScore
: int
-
__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
Return values
mixed
—
asString()
public
asString() : string
Return values
string
—
getNumber()
public
getNumber() : int|null
Return values
int|null
—
getValue()
public
getValue() : string
Return values
string
—
isGreaterThan()
public
isGreaterThan(PreReleaseSuffix $suffix) : bool
Parameters
-
$suffix
: PreReleaseSuffix
-
Return values
bool
—
mapValueToScore()
private
mapValueToScore(string $value) : int
Parameters
-
$value
: string
-
Return values
int
—
parseValue()
private
parseValue(string $value) : void
Parameters
-
$value
: string
-
Return values
void
—