PHP Class Phan\Language\FQSEN\FullyQualifiedClassElement

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

Public Methods

Method 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

Protected Methods

Method Description
__construct ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )

Method Details

__construct() protected method

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 method

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

fromFullyQualifiedString() public static method

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

fromStringInContext() public static method

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
return static

getFullyQualifiedClassName() public method

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

make() public static method

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 method

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

withAlternateId() public method

public withAlternateId ( integer $alternate_id ) : static
$alternate_id integer
return static A FQSEN with the given alternate_id set

withFullyQualifiedClassName() public method

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