PHP Class Phan\Language\FileRef

Inheritance: implements Serializable
Afficher le fichier Open project: etsy/phan Class Usage Examples

Protected Properties

Свойство Type Description
$file string The path to the file in which this element is defined
$line_number_end integer The ending line number of the element within the $file
$line_number_start integer The starting line number of the element within the $file

Méthodes publiques

Méthode Description
__toString ( ) : string Get a string representation of the context
getFile ( ) : string
getLineNumberStart ( ) : integer *
getProjectRelativePath ( ) : string
isInternal ( ) : boolean
serialize ( )
unserialize ( $serialized )
withFile ( string $file ) : static
withLineNumberEnd ( integer $line_number ) : static
withLineNumberStart ( integer $line_number ) : static

Method Details

__toString() public méthode

Get a string representation of the context
public __toString ( ) : string
Résultat string

getFile() public méthode

public getFile ( ) : string
Résultat string The path to the file in which the element is defined

getLineNumberStart() public méthode

*
public getLineNumberStart ( ) : integer
Résultat integer The starting line number of the element within the file

getProjectRelativePath() public méthode

public getProjectRelativePath ( ) : string
Résultat string The path of the file relative to the project root directory

isInternal() public méthode

public isInternal ( ) : boolean
Résultat boolean True if this object is internal to PHP

serialize() public méthode

public serialize ( )

unserialize() public méthode

public unserialize ( $serialized )

withFile() public méthode

public withFile ( string $file ) : static
$file string The path to the file in which this element is defined
Résultat static This context with the given value is returned

withLineNumberEnd() public méthode

public withLineNumberEnd ( integer $line_number ) : static
$line_number integer The ending line number of the element within the $file
Résultat static This context with the given value is returned

withLineNumberStart() public méthode

public withLineNumberStart ( integer $line_number ) : static
$line_number integer
Résultat static This context with the given value is returned

Property Details

$file protected_oe property

The path to the file in which this element is defined
protected string $file
Résultat string

$line_number_end protected_oe property

The ending line number of the element within the $file
protected int $line_number_end
Résultat integer

$line_number_start protected_oe property

The starting line number of the element within the $file
protected int $line_number_start
Résultat integer