Copied!

The location where an element occurs within a file.

  • psalm-immutable
CloneableFinalInstantiable
Methods
public __construct(int $lineNumber, int $columnNumber = 0)
 

Initializes the location for an element using its line number in the file and optionally the column number.

public getColumnNumber() : int
 

Returns the column number (character position on a line) for this location object.

public getLineNumber() : int
 

Returns the line number that is covered by this location.

Properties
private $columnNumber = 0
 
  • var int
private $lineNumber = 0
 
  • var int
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration