Documentation

DynamicStringExtractor
in package
implements DynamicValueExtractor

The "string" dynamic value extractor extracts a dynamic value without validating the extracted value.

Tags
author

DeviceAtlas Limited

Table of Contents

Interfaces

DynamicValueExtractor

Properties

$delimitersAfterHandler  : mixed
$delimitersBeforeHandler  : mixed

Methods

__construct()  : mixed
getDelimitersAfterHandler()  : mixed
getDelimitersBeforeHandler()  : mixed
getDynamicValue()  : string|null
Extracts the characters between a valid delimiter and up to the next delimiter. The ending delimiter can be any delimiter but the starting delimiter must match the defined "delimiterBeforeDynamicValue". The extracted value is not validated and is returned as is.

Properties

Methods

__construct()

public __construct(mixed $delimitersBeforeHandler, mixed $delimitersAfterHandler) : mixed
Parameters
$delimitersBeforeHandler : mixed
$delimitersAfterHandler : mixed

getDynamicValue()

Extracts the characters between a valid delimiter and up to the next delimiter. The ending delimiter can be any delimiter but the starting delimiter must match the defined "delimiterBeforeDynamicValue". The extracted value is not validated and is returned as is.

public getDynamicValue(string $identifier, int $startIndex) : string|null
Parameters
$identifier : string

The identifier string to extract the dynamic 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.


        
On this page

Search results