PHP Class Phan\Language\FQSEN\FullyQualifiedFunctionName

Inheritance: extends FullyQualifiedGlobalStructuralElement, implements Phan\Language\FQSEN\FullyQualifiedFunctionLikeName
Show file Open project: etsy/phan Class Usage Examples

Public Methods

Method Description
canonicalName ( string $name ) : string
fromClosureInContext ( Context $context ) : FullyQualifiedFunctionName
fromStringInContext ( string $fqsen_string, Context $context ) : FullyQualifiedFunctionName
isClosure ( ) : boolean

Protected Methods

Method Description
getNamespaceMapType ( ) : integer

Method Details

canonicalName() public static method

public static canonicalName ( string $name ) : string
$name string
return string The canonical representation of the name of the object. Functions and Methods, for instance, lowercase their names.

fromClosureInContext() public static method

public static fromClosureInContext ( Context $context ) : FullyQualifiedFunctionName
$context Phan\Language\Context
return FullyQualifiedFunctionName

fromStringInContext() public static method

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

getNamespaceMapType() protected static method

protected static getNamespaceMapType ( ) : integer
return integer The namespace map type such as \ast\flags\USE_NORMAL or \ast\flags\USE_FUNCTION

isClosure() public method

public isClosure ( ) : boolean
return boolean True if this FQSEN represents a closure