PHP Класс Phan\Language\Element\TypedElement

..
Наследование: implements Phan\Language\Element\TypedElementInterface, use trait Phan\Memoize
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
hydrateOnce ( CodeBase $code_base ) : void This method must be called before analysis begins.

Приватные методы

Метод Описание
setIsInternal ( boolean $is_internal ) : void

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

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

After a clone is called on this object, clone our type and fqsen so that they survive copies intact
public __clone ( ) : null
Результат null

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

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 getContext ( ) : Context
Результат Phan\Language\Context The context in which this structural element exists

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

public getFileRef ( ) : FileRef
Результат Phan\Language\FileRef A reference to where this element was found

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

public getFlags ( ) : integer
Результат integer

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

public getName ( ) : string
Результат string The (not fully-qualified) name of this element.

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

public getPhanFlags ( ) : integer
Результат integer

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

public getSuppressIssueList ( ) : array
Результат array

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

public getUnionType ( ) : UnionType
Результат Phan\Language\UnionType Get the type of this structural element

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

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
Результат Phan\Language\UnionType

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

return bool True if this element would like to suppress the given issue name
public hasSuppressIssue ( string $issue_name ) : boolean
$issue_name string
Результат boolean

hydrate() закрытый публичный Метод

This method must be called before analysis begins.
final public hydrate ( CodeBase $code_base ) : void
$code_base Phan\CodeBase
Результат void

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

This method must be called before analysis begins.
protected hydrateOnce ( CodeBase $code_base ) : void
$code_base Phan\CodeBase
Результат void

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

public isDeprecated ( ) : boolean
Результат boolean True if this element is marked as deprecated

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

public isInternal ( ) : boolean
Результат boolean True if this was an internal PHP object

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

public setFlags ( integer $flags ) : void
$flags integer
Результат void

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

public setIsDeprecated ( boolean $is_deprecated ) : void
$is_deprecated boolean Set this element as deprecated
Результат void

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

public setPhanFlags ( integer $phan_flags ) : void
$phan_flags integer
Результат void

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

public setSuppressIssueList ( array $suppress_issue_list ) : void
$suppress_issue_list array Set the set of issue names to suppress
Результат void

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

public setUnionType ( UnionType $type ) : void
$type Phan\Language\UnionType Set the type of this element
Результат void