\DeviceAtlas\DeviceIdentifierMatchResult

Collects the MatchCandidates found during the token trie walk along with their token position. Positions for dynamic properties are also recorded for later use.

Summary

Methods
Properties
Constants
__construct()
addMatchCandidates()
addDynamicPropertyPosition()
getDynamicPropertyPositions()
hasDynamicPropertyPositions()
getIdentifier()
getMatchCandidates()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$identifier
$tokenPositionToMatchCandidates
$dynamicPropertyPositions
N/A

Properties

$identifier

$identifier : 

Type

$tokenPositionToMatchCandidates

$tokenPositionToMatchCandidates : 

Type

$dynamicPropertyPositions

$dynamicPropertyPositions : 

Type

Methods

__construct()

__construct(  $identifier) 

Parameters

$identifier
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

addMatchCandidates()

addMatchCandidates(  $tokenPosition,   $matchCandidates) 

Store match candidates along with it's token position. The token position is used by the lookaround constraints.

Parameters

$tokenPosition
$matchCandidates
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

addDynamicPropertyPosition()

addDynamicPropertyPosition(  $component,   $charPositionBeforeDynamicValue) 

The component and character position are stored in a map with the component as the key as it will later be accessed.

If the same token appears multiple times in an BasicInput then only the last position will be stored with it. It may appear sensible to store all positions for a component to avoid losing the first position but it is more efficient to only store one position and to use rule constraints to prevent more than one of the same component being added.

Parameters

$component
$charPositionBeforeDynamicValue
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getDynamicPropertyPositions()

getDynamicPropertyPositions() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

hasDynamicPropertyPositions()

hasDynamicPropertyPositions() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getIdentifier()

getIdentifier() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getMatchCandidates()

getMatchCandidates() 

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275