Method | Description | |
---|---|---|
__toString ( ) : string | ||
fromFullyQualifiedString ( string $fully_qualified_string ) : static | ||
fromStringInContext ( string $fqsen_string, |
||
getNamespace ( ) : string | ||
make ( string $namespace, string $name, integer $alternate_id ) : static | ||
toString ( string $namespace, string $name, integer $alternate_id ) : string | ||
withAlternateId ( integer $alternate_id ) : static | ||
withNamespace ( string $namespace ) : static |
Method | Description | |
---|---|---|
__construct ( string $namespace, string $name, integer $alternate_id ) | ||
cleanNamespace ( string $namespace ) : string | ||
getNamespaceMapType ( ) : integer |
public __toString ( ) : string | ||
return | string | A string representation of this fully-qualified structural element name. |
protected static cleanNamespace ( string $namespace ) : string | ||
$namespace | string | |
return | string | A cleaned version of the given namespace such that its always prefixed with a '\' and never ends in a '\', and is the string "\" if there is no namespace. |
public static fromFullyQualifiedString ( string $fully_qualified_string ) : static | ||
$fully_qualified_string | string | An fully qualified string like '\Namespace\Class' |
return | static |
public static fromStringInContext ( string $fqsen_string, |
||
$fqsen_string | string | An FQSEN string like '\Namespace\Class' |
$context | The context in which the FQSEN string was found | |
return | static |
public getNamespace ( ) : string | ||
return | string | The namespace associated with this FQSEN or null if not defined |
abstract protected static getNamespaceMapType ( ) : integer | ||
return | integer | The namespace map type such as \ast\flags\USE_NORMAL or \ast\flags\USE_FUNCTION |
public static make ( string $namespace, string $name, integer $alternate_id ) : static | ||
$namespace | string | The namespace in this element's scope |
$name | string | The name of this structural element |
$alternate_id | integer | An alternate ID for the elemnet for use when there are multiple definitions of the element |
return | static |
public withAlternateId ( integer $alternate_id ) : static | ||
$alternate_id | integer | |
return | static | A FQSEN with the given alternate_id set |
public withNamespace ( string $namespace ) : static | ||
$namespace | string | |
return | static |