Range
in package
A range in a text document expressed as (zero-based) start and end positions.
Table of Contents
Properties
Methods
- __construct() : mixed
- includes() : bool
- Checks if a position is within the range
Properties
$end
The range's end position.
public
Position
$end
$start
The range's start position.
public
Position
$start
Methods
__construct()
public
__construct([Position|null $start = null ][, Position|null $end = null ]) : mixed
Parameters
includes()
Checks if a position is within the range
public
includes(Position $position) : bool
Parameters
- $position : Position