Location
in package
The location where an element occurs within a file.
Tags
Table of Contents
- $columnNumber : int
- $lineNumber : int
- __construct() : mixed
- Initializes the location for an element using its line number in the file and optionally the column number.
- getColumnNumber() : int
- Returns the column number (character position on a line) for this location object.
- getLineNumber() : int
- Returns the line number that is covered by this location.
Properties
$columnNumber
private
int
$columnNumber
= 0
$lineNumber
private
int
$lineNumber
= 0
Methods
__construct()
Initializes the location for an element using its line number in the file and optionally the column number.
public
__construct(int $lineNumber, int $columnNumber) : mixed
Parameters
- $lineNumber : int
- $columnNumber : int
Return values
mixed —getColumnNumber()
Returns the column number (character position on a line) for this location object.
public
getColumnNumber() : int
Return values
int —getLineNumber()
Returns the line number that is covered by this location.
public
getLineNumber() : int