PHP Class Phan\Language\FQSEN\FullyQualifiedClassElement

Inheritance: extends AbstractFQSEN, use trait Phan\Language\FQSEN\Alternatives, use trait Phan\Memoize
Afficher le fichier Open project: etsy/phan Class Usage Examples

Méthodes publiques

Méthode Description
__toString ( ) : string
fromFullyQualifiedString ( string $fully_qualified_string )
fromStringInContext ( string $fqsen_string, Context $context ) : static
getFullyQualifiedClassName ( ) : FullyQualifiedClassName
make ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )
toString ( FullyQualifiedClassName $fqsen, string $name, integer $alternate_id ) : string
withAlternateId ( integer $alternate_id ) : static
withFullyQualifiedClassName ( FullyQualifiedClassName $fully_qualified_class_name ) : static

Méthodes protégées

Méthode Description
__construct ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )

Method Details

__construct() protected méthode

protected __construct ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )
$fully_qualified_class_name FullyQualifiedClassName The fully qualified class name of the class in whic this element exists
$name string A name if one is in scope or the empty string otherwise.
$alternate_id integer An alternate ID for the element for use when there are multiple definitions of the element

__toString() public méthode

public __toString ( ) : string
Résultat string A string representation of this fully-qualified structural element name.

fromFullyQualifiedString() public static méthode

public static fromFullyQualifiedString ( string $fully_qualified_string )
$fully_qualified_string string An FQSEN string like '\Namespace\Class::methodName'

fromStringInContext() public static méthode

public static fromStringInContext ( string $fqsen_string, Context $context ) : static
$fqsen_string string An FQSEN string like '\Namespace\Class::methodName'
$context Phan\Language\Context The context in which the FQSEN string was found
Résultat static

getFullyQualifiedClassName() public méthode

public getFullyQualifiedClassName ( ) : FullyQualifiedClassName
Résultat FullyQualifiedClassName The fully qualified class name associated with this class element.

make() public static méthode

public static make ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )
$fully_qualified_class_name FullyQualifiedClassName The fully qualified class name of the class in whic this element exists
$name string A name if one is in scope or the empty string otherwise.
$alternate_id integer An alternate ID for the element for use when there are multiple definitions of the element

toString() public static méthode

public static toString ( FullyQualifiedClassName $fqsen, string $name, integer $alternate_id ) : string
$fqsen FullyQualifiedClassName
$name string
$alternate_id integer
Résultat string A string representation of the given values

withAlternateId() public méthode

public withAlternateId ( integer $alternate_id ) : static
$alternate_id integer
Résultat static A FQSEN with the given alternate_id set

withFullyQualifiedClassName() public méthode

public withFullyQualifiedClassName ( FullyQualifiedClassName $fully_qualified_class_name ) : static
$fully_qualified_class_name FullyQualifiedClassName
Résultat static A new object with the given fully qualified class name