PHP Class Phan\Language\Element\TypedElement

..
Inheritance: implements Phan\Language\Element\TypedElementInterface, use trait Phan\Memoize
Afficher le fichier Open project: etsy/phan Class Usage Examples

Méthodes publiques

Méthode Description
__clone ( ) : null After a clone is called on this object, clone our type and fqsen so that they survive copies intact
__construct ( Context $context, string $name, UnionType $type, integer $flags )
getContext ( ) : Context
getFileRef ( ) : FileRef
getFlags ( ) : integer
getName ( ) : string
getPhanFlags ( ) : integer
getSuppressIssueList ( ) : array
getUnionType ( ) : UnionType
getVariadicElementUnionType ( ) : UnionType Variables can't be variadic. This is the same as getUnionType for variables, but not necessarily for subclasses. Method will return the element type (such as DateTime) for variadic parameters.
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
setFlags ( integer $flags ) : void
setIsDeprecated ( boolean $is_deprecated ) : void
setPhanFlags ( integer $phan_flags ) : void
setSuppressIssueList ( array $suppress_issue_list ) : void
setUnionType ( UnionType $type ) : void

Méthodes protégées

Méthode Description
hydrateOnce ( CodeBase $code_base ) : void This method must be called before analysis begins.

Private Methods

Méthode Description
setIsInternal ( boolean $is_internal ) : void

Method Details

__clone() public méthode

After a clone is called on this object, clone our type and fqsen so that they survive copies intact
public __clone ( ) : null
Résultat null

__construct() public méthode

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

getContext() public méthode

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

getFileRef() public méthode

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

getFlags() public méthode

public getFlags ( ) : integer
Résultat integer

getName() public méthode

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

getPhanFlags() public méthode

public getPhanFlags ( ) : integer
Résultat integer

getSuppressIssueList() public méthode

public getSuppressIssueList ( ) : array
Résultat array

getUnionType() public méthode

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

getVariadicElementUnionType() public méthode

Variables can't be variadic. This is the same as getUnionType for variables, but not necessarily for subclasses. Method will return the element type (such as DateTime) for variadic parameters.
public getVariadicElementUnionType ( ) : UnionType
Résultat Phan\Language\UnionType

hasSuppressIssue() public méthode

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

hydrate() final public méthode

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

hydrateOnce() protected méthode

This method must be called before analysis begins.
protected hydrateOnce ( CodeBase $code_base ) : void
$code_base Phan\CodeBase
Résultat void

isDeprecated() public méthode

public isDeprecated ( ) : boolean
Résultat boolean True if this element is marked as deprecated

isInternal() public méthode

public isInternal ( ) : boolean
Résultat boolean True if this was an internal PHP object

setFlags() public méthode

public setFlags ( integer $flags ) : void
$flags integer
Résultat void

setIsDeprecated() public méthode

public setIsDeprecated ( boolean $is_deprecated ) : void
$is_deprecated boolean Set this element as deprecated
Résultat void

setPhanFlags() public méthode

public setPhanFlags ( integer $phan_flags ) : void
$phan_flags integer
Résultat void

setSuppressIssueList() public méthode

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

setUnionType() public méthode

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