PHP Class Phan\Language\FQSEN\AbstractFQSEN

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

Public Methods

Method Description
__toString ( ) : string
canonicalName ( string $name ) : string
fromFullyQualifiedString ( string $fully_qualified_string ) : Phan\Language\FQSEN
fromStringInContext ( string $string, Context $context ) : Phan\Language\FQSEN
getName ( ) : string

Protected Methods

Method Description
__construct ( string $name )

Method Details

__construct() protected method

protected __construct ( string $name )
$name string The name of this structural element

__toString() abstract public method

abstract public __toString ( ) : string
return string A string representation of this fully-qualified structural element name.

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.

fromFullyQualifiedString() abstract public static method

abstract public static fromFullyQualifiedString ( string $fully_qualified_string ) : Phan\Language\FQSEN
$fully_qualified_string string
return Phan\Language\FQSEN

fromStringInContext() abstract public static method

abstract public static fromStringInContext ( string $string, Context $context ) : Phan\Language\FQSEN
$string string
$context Phan\Language\Context The context in which the FQSEN string was found
return Phan\Language\FQSEN

getName() public method

public getName ( ) : string
return string The class associated with this FQSEN or null if not defined