PHP 클래스 Phan\Language\FQSEN\FullyQualifiedClassElement

상속: extends AbstractFQSEN, use trait Phan\Language\FQSEN\Alternatives, use trait Phan\Memoize
파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__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