PHP Class Phan\Language\Element\AddressableElement

Inheritance: extends TypedElement, implements Phan\Language\Element\AddressableElementInterface
Show file Open project: etsy/phan Class Usage Examples

Protected Properties

Property Type Description
$fqsen Phan\Language\FQSEN

Public Methods

Method Description
__construct ( Context $context, string $name, UnionType $type, integer $flags, Phan\Language\FQSEN $fqsen )
addReference ( FileRef $file_ref ) : void
getFQSEN ( ) : Phan\Language\FQSEN
getReferenceCount ( CodeBase $code_base ) : integer
getReferenceList ( ) : array
isPrivate ( ) : boolean
isProtected ( ) : boolean
isPublic ( ) : boolean
setFQSEN ( Phan\Language\FQSEN $fqsen ) : void

Method Details

__construct() public method

public __construct ( Context $context, string $name, UnionType $type, integer $flags, Phan\Language\FQSEN $fqsen )
$context Phan\Language\Context The context in which the structural element lives
$name string
$type Phan\Language\UnionType
$flags integer
$fqsen Phan\Language\FQSEN A fully qualified name for the element

addReference() public method

public addReference ( FileRef $file_ref ) : void
$file_ref Phan\Language\FileRef A reference to a location in which this typed structural element is referenced.
return void

getFQSEN() public method

public getFQSEN ( ) : Phan\Language\FQSEN
return Phan\Language\FQSEN The fully-qualified structural element name of this structural element

getReferenceCount() public method

public getReferenceCount ( CodeBase $code_base ) : integer
$code_base Phan\CodeBase Some elements may need access to the code base to figure out their total reference count.
return integer The number of references to this typed structural element

getReferenceList() public method

public getReferenceList ( ) : array
return array A list of references to this typed structural element.

isPrivate() public method

public isPrivate ( ) : boolean
return boolean True if this is a private property

isProtected() public method

public isProtected ( ) : boolean
return boolean True if this is a protected property

isPublic() public method

public isPublic ( ) : boolean
return boolean True if this is a public property

setFQSEN() public method

public setFQSEN ( Phan\Language\FQSEN $fqsen ) : void
$fqsen Phan\Language\FQSEN A fully qualified structural element name to set on this element
return void

Property Details

$fqsen protected property

protected FQSEN,Phan\Language $fqsen
return Phan\Language\FQSEN