PHP Трейт Phan\Language\FQSEN\Alternatives

An alternate ID will be appended to a name such as in \Name\Space\class,1 or \Name\Space\class::function,1 or when composed as \Name\Space\class,1::function,1.
Показать файл Открыть проект

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

Свойство Тип Описание
$alternate_id integer An alternate ID for the elemnet for use when there are multiple definitions of the element

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

Метод Описание
getAlternateId ( ) : integer
getCanonicalFQSEN ( ) : Phan\Language\FQSEN
getName ( ) : string Implementers must have a getName() method
getNameWithAlternateId ( ) : string
isAlternate ( ) : boolean
withAlternateId ( integer $alternate_id ) : Phan\Language\FQSEN

Защищенные методы

Метод Описание
memoizeFlushAll ( ) Implementers should use the \Phan\Memoize trait

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

getAlternateId() публичный Метод

public getAlternateId ( ) : integer
Результат integer An alternate identifier associated with this FQSEN or zero if none if this is not an alternative.

getCanonicalFQSEN() публичный Метод

public getCanonicalFQSEN ( ) : Phan\Language\FQSEN
Результат Phan\Language\FQSEN Get the canonical (non-alternate) FQSEN associated with this FQSEN

getName() абстрактный публичный Метод

Implementers must have a getName() method
abstract public getName ( ) : string
Результат string

getNameWithAlternateId() публичный Метод

public getNameWithAlternateId ( ) : string
Результат string Get the name of this element with its alternate id attached

isAlternate() публичный Метод

public isAlternate ( ) : boolean
Результат boolean True if this is an alternate

memoizeFlushAll() абстрактный защищенный Метод

Implementers should use the \Phan\Memoize trait
abstract protected memoizeFlushAll ( )

withAlternateId() абстрактный публичный Метод

abstract public withAlternateId ( integer $alternate_id ) : Phan\Language\FQSEN
$alternate_id integer
Результат Phan\Language\FQSEN A FQSEN with the given alternate_id set

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

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

An alternate ID for the elemnet for use when there are multiple definitions of the element
protected int $alternate_id
Результат integer