\DeviceAtlas\DevicePositionConstraint

Defines a range of valid positions that a token can occur in.

Summary

Methods
Properties
Constants
__construct()
isValidPosition()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$minPos
$maxPos
N/A

Properties

$minPos

$minPos : 

Type

$maxPos

$maxPos : 

Type

Methods

__construct()

__construct(  $minPos,   $maxPos) 

Parameters

$minPos
$maxPos
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

isValidPosition()

isValidPosition(  $tokenPosition) : boolean

Verify that the given token position is valid or not.

Parameters

$tokenPosition
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

Returns

boolean