PHP Класс Phan\Language\FileRef

Наследование: implements Serializable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__toString() публичный метод

Get a string representation of the context
public __toString ( ) : string
Результат string

getFile() публичный метод

public getFile ( ) : string
Результат string The path to the file in which the element is defined

getLineNumberStart() публичный метод

*
public getLineNumberStart ( ) : integer
Результат integer The starting line number of the element within the file

getProjectRelativePath() публичный метод

public getProjectRelativePath ( ) : string
Результат string The path of the file relative to the project root directory

isInternal() публичный метод

public isInternal ( ) : boolean
Результат boolean True if this object is internal to PHP

serialize() публичный метод

public serialize ( )

unserialize() публичный метод

public unserialize ( $serialized )

withFile() публичный метод

public withFile ( string $file ) : static
$file string The path to the file in which this element is defined
Результат static This context with the given value is returned

withLineNumberEnd() публичный метод

public withLineNumberEnd ( integer $line_number ) : static
$line_number integer The ending line number of the element within the $file
Результат static This context with the given value is returned

withLineNumberStart() публичный метод

public withLineNumberStart ( integer $line_number ) : static
$line_number integer
Результат static This context with the given value is returned

Описание свойств

$file защищенное свойство

The path to the file in which this element is defined
protected string $file
Результат string

$line_number_end защищенное свойство

The ending line number of the element within the $file
protected int $line_number_end
Результат integer

$line_number_start защищенное свойство

The starting line number of the element within the $file
protected int $line_number_start
Результат integer