Documentation

Location
in package

The location where an element occurs within a file.

Tags
psalm-immutable

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

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 = 0 ]) : mixed
Parameters
$lineNumber : int
$columnNumber : int = 0
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
Return values
int

Search results