PHP Trait 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.
Afficher le fichier Open project: etsy/phan

Protected Properties

Свойство Type Description
$alternate_id integer An alternate ID for the elemnet for use when there are multiple definitions of the element

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
memoizeFlushAll ( ) Implementers should use the \Phan\Memoize trait

Method Details

getAlternateId() public méthode

public getAlternateId ( ) : integer
Résultat integer An alternate identifier associated with this FQSEN or zero if none if this is not an alternative.

getCanonicalFQSEN() public méthode

public getCanonicalFQSEN ( ) : Phan\Language\FQSEN
Résultat Phan\Language\FQSEN Get the canonical (non-alternate) FQSEN associated with this FQSEN

getName() abstract public méthode

Implementers must have a getName() method
abstract public getName ( ) : string
Résultat string

getNameWithAlternateId() public méthode

public getNameWithAlternateId ( ) : string
Résultat string Get the name of this element with its alternate id attached

isAlternate() public méthode

public isAlternate ( ) : boolean
Résultat boolean True if this is an alternate

memoizeFlushAll() abstract protected méthode

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

withAlternateId() abstract public méthode

abstract public withAlternateId ( integer $alternate_id ) : Phan\Language\FQSEN
$alternate_id integer
Résultat Phan\Language\FQSEN A FQSEN with the given alternate_id set

Property Details

$alternate_id protected_oe property

An alternate ID for the elemnet for use when there are multiple definitions of the element
protected int $alternate_id
Résultat integer