PHP Класс Phan\Language\FQSEN\FullyQualifiedClassElement

Наследование: extends AbstractFQSEN, use trait Phan\Language\FQSEN\Alternatives, use trait Phan\Memoize
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
__construct ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )

Описание методов

__construct() защищенный Метод

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 __toString ( ) : string
Результат string A string representation of this fully-qualified structural element name.

fromFullyQualifiedString() публичный статический Метод

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

fromStringInContext() публичный статический Метод

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
Результат static

getFullyQualifiedClassName() публичный Метод

public getFullyQualifiedClassName ( ) : FullyQualifiedClassName
Результат FullyQualifiedClassName The fully qualified class name associated with this class element.

make() публичный статический Метод

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 toString ( FullyQualifiedClassName $fqsen, string $name, integer $alternate_id ) : string
$fqsen FullyQualifiedClassName
$name string
$alternate_id integer
Результат string A string representation of the given values

withAlternateId() публичный Метод

public withAlternateId ( integer $alternate_id ) : static
$alternate_id integer
Результат static A FQSEN with the given alternate_id set

withFullyQualifiedClassName() публичный Метод

public withFullyQualifiedClassName ( FullyQualifiedClassName $fully_qualified_class_name ) : static
$fully_qualified_class_name FullyQualifiedClassName
Результат static A new object with the given fully qualified class name