Documentation

PositionConstraint
in package

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

Tags
author

DeviceAtlas Limited

Table of Contents

Properties

$maxPos  : mixed
$minPos  : mixed

Methods

__construct()  : mixed
isValidPosition()  : bool
Verify that the given token position is valid or not.

Properties

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
Return values
bool

        
On this page

Search results