PositionConstraint
in package
Defines a range of valid positions that a token can occur in.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- isValidPosition() : bool
- Verify that the given token position is valid or not.
Properties
$maxPos
private
mixed
$maxPos
$minPos
private
mixed
$minPos
Methods
__construct()
public
__construct(mixed $minPos, mixed $maxPos) : mixed
Parameters
- $minPos : mixed
- $maxPos : mixed
isValidPosition()
Verify that the given token position is valid or not.
public
isValidPosition(mixed $tokenPosition) : bool
Parameters
- $tokenPosition : mixed