DynamicVersionExtractor
in package
implements
DynamicValueExtractor
The "version" dynamic value extractor extracts a dynamic value and ensures it is a version value.
Tags
Table of Contents
Interfaces
Properties
- $dAH : mixed
- $dBH : mixed
- $DECIMAL_POINT : mixed
- $dS : mixed
- $kP : mixed
- $p : mixed
- $sA : mixed
- $sS : mixed
Methods
- __construct() : mixed
- getDecimalSeperator() : mixed
- getDelimitersAfterHandler() : mixed
- getDelimitersBeforeHandler() : mixed
- getDynamicValue() : string|null
- Extracts the characters between a valid delimiter (if defined) and up to the next delimiter. By default the ending delimiter is one of the standard set but a custom delimiter can be defined instead. The extracted value is loosely validated to ensure it is a version number and fits the defined version number criteria.
- getPrefix() : mixed
- getSuffixSeperator() : mixed
- isKeepPrefix() : mixed
- isSuffixAllowed() : mixed
Properties
$dAH
private
mixed
$dAH
$dBH
private
mixed
$dBH
$DECIMAL_POINT
private
static mixed
$DECIMAL_POINT
= '.'
$dS
private
mixed
$dS
$kP
private
mixed
$kP
$p
private
mixed
$p
$sA
private
mixed
$sA
$sS
private
mixed
$sS
Methods
__construct()
public
__construct(mixed $delimitersBeforeHandler, mixed $delimitersAfterHandler, mixed $prefix, mixed $keepPrefix, mixed $decimalSeperator, mixed $suffixAllowed, mixed $suffixSeperator) : mixed
Parameters
- $delimitersBeforeHandler : mixed
- $delimitersAfterHandler : mixed
- $prefix : mixed
- $keepPrefix : mixed
- $decimalSeperator : mixed
- $suffixAllowed : mixed
- $suffixSeperator : mixed
getDecimalSeperator()
public
getDecimalSeperator() : mixed
getDelimitersAfterHandler()
public
getDelimitersAfterHandler() : mixed
getDelimitersBeforeHandler()
public
getDelimitersBeforeHandler() : mixed
getDynamicValue()
Extracts the characters between a valid delimiter (if defined) and up to the next delimiter. By default the ending delimiter is one of the standard set but a custom delimiter can be defined instead. The extracted value is loosely validated to ensure it is a version number and fits the defined version number criteria.
public
getDynamicValue(string $identifier, int $startIndex) : string|null
Parameters
- $identifier : string
-
The identifier string to extract the dynamic version value from
- $startIndex : int
-
The character index in the identifier where the dynamic value starts
Return values
string|null —The dynamic value string or null if no dynamic value found.
getPrefix()
public
getPrefix() : mixed
getSuffixSeperator()
public
getSuffixSeperator() : mixed
isKeepPrefix()
public
isKeepPrefix() : mixed
isSuffixAllowed()
public
isSuffixAllowed() : mixed