PHP Interface Phan\Language\Element\TypedElementInterface

..
Show file Open project: etsy/phan

Public Methods

Method Description
getContext ( ) : Context
getFileRef ( ) : FileRef
getName ( ) : string
getUnionType ( ) : UnionType
hasSuppressIssue ( string $issue_name ) : boolean return bool True if this element would like to suppress the given issue name
hydrate ( CodeBase $code_base ) : void This method must be called before analysis begins.
isDeprecated ( ) : boolean
isInternal ( ) : boolean
setIsDeprecated ( boolean $is_deprecated ) : void
setSuppressIssueList ( array $suppress_issue_list ) : void
setUnionType ( UnionType $type ) : void

Method Details

getContext() public method

public getContext ( ) : Context
return Phan\Language\Context The context in which this structural element exists

getFileRef() public method

public getFileRef ( ) : FileRef
return Phan\Language\FileRef A reference to where this element was found

getName() public method

public getName ( ) : string
return string The (not fully-qualified) name of this element.

getUnionType() public method

public getUnionType ( ) : UnionType
return Phan\Language\UnionType Get the type of this structural element

hasSuppressIssue() public method

return bool True if this element would like to suppress the given issue name
public hasSuppressIssue ( string $issue_name ) : boolean
$issue_name string
return boolean

hydrate() public method

This method must be called before analysis begins.
public hydrate ( CodeBase $code_base ) : void
$code_base Phan\CodeBase
return void

isDeprecated() public method

public isDeprecated ( ) : boolean
return boolean True if this element is marked as deprecated

isInternal() public method

public isInternal ( ) : boolean
return boolean True if this was an internal PHP object

setIsDeprecated() public method

public setIsDeprecated ( boolean $is_deprecated ) : void
$is_deprecated boolean Set this element as deprecated
return void

setSuppressIssueList() public method

public setSuppressIssueList ( array $suppress_issue_list ) : void
$suppress_issue_list array Set the set of issue names to suppress
return void

setUnionType() public method

public setUnionType ( UnionType $type ) : void
$type Phan\Language\UnionType Set the type of this element
return void