class PHPFunction extends PHPNamespacedElement (View source)

Traits

Properties

$links from  PHPDocElement
string $phpdoc from  PHPDocElement
See[] $see from  PHPDocElement
Since[] $sinceTags from  PHPDocElement
Deprecated[] $deprecatedTags from  PHPDocElement
RemovedTag[] $removedTags from  PHPDocElement
Param[] $paramTags from  PHPDocElement
Return_[] $returnTags from  PHPDocElement
Var_[] $varTags from  PHPDocElement
string[] $tagNames from  PHPDocElement
bool $hasInheritDocTag from  PHPDocElement
bool $hasInternalMetaTag from  PHPDocElement
Template> $templateTypes from  PHPDocElement
string|null $name from  BasePHPElement
$stubBelongsToCore from  BasePHPElement
Exception|null $parseError from  BasePHPElement
$mutedProblems from  BasePHPElement
$availableVersionsRangeFromAttribute from  BasePHPElement
string|null $sourceFilePath from  BasePHPElement
bool $duplicateOtherElement from  BasePHPElement
$stubObjectHash from  BasePHPElement
$id from  BasePHPElement
$isDeprecated from  BasePHPElement
$namespace from  PHPNamespacedElement
PHPParameter[] $parameters
string[] $returnTypesFromPhpDoc
string[][] $returnTypesFromAttribute
string[] $returnTypesFromSignature
$hasTentativeReturnType

Methods

collectTags(Node $node)

No description

readObjectFromReflection(Reflector $reflectionObject)

No description

readObjectFromStubNode(Node $node)

No description

readMutedProblems(stdClass|array $jsonData)

No description

static string
getFQN(Node $node)

No description

static string
getShortName(Node $node)

No description

static array
getReflectionTypeAsArray(ReflectionType|null $type)

No description

static array
convertParsedTypeToArray(Name|Identifier|NullableType|string|UnionType|null|Type $type)

No description

static string
getTypeNameFromNode(Name|Identifier|NullableType|string $type)

No description

static string[]
findTypesFromAttribute(array $attrGroups)

No description

static array
findAvailableVersionsRangeFromAttribute(array $attrGroups)

No description

static bool
hasTentativeTypeAttribute(array $attrGroups)

No description

bool
hasMutedProblem(int $stubProblemType)

No description

checkDeprecationTag($node)

No description

checkIfReturnTypeIsTentative(FunctionLike $node)

No description

checkReturnTag()

No description

static string[]
handleType(Type|null $type)

No description

static bool
hasTentativeReturnTypeAttribute(FunctionLike $node)

No description

getParameter(string $parameterName)

No description

Details

protected collectTags(Node $node)

No description

Parameters

Node $node

BasePHPElement readObjectFromReflection(Reflector $reflectionObject)

No description

Parameters

Reflector $reflectionObject

Return Value

BasePHPElement

BasePHPElement readObjectFromStubNode(Node $node)

No description

Parameters

Node $node

Return Value

BasePHPElement

Exceptions

RuntimeException

readMutedProblems(stdClass|array $jsonData)

No description

Parameters

stdClass|array $jsonData

Exceptions

Exception

static string getFQN(Node $node)

No description

Parameters

Node $node

Return Value

string

static string getShortName(Node $node)

No description

Parameters

Node $node

Return Value

string

static protected array getReflectionTypeAsArray(ReflectionType|null $type)

No description

Parameters

ReflectionType|null $type

Return Value

array

static protected array convertParsedTypeToArray(Name|Identifier|NullableType|string|UnionType|null|Type $type)

No description

Parameters

Name|Identifier|NullableType|string|UnionType|null|Type $type

Return Value

array

static protected string getTypeNameFromNode(Name|Identifier|NullableType|string $type)

No description

Parameters

Name|Identifier|NullableType|string $type

Return Value

string

static protected string[] findTypesFromAttribute(array $attrGroups)

No description

Parameters

array $attrGroups

Return Value

string[]

static protected array findAvailableVersionsRangeFromAttribute(array $attrGroups)

No description

Parameters

array $attrGroups

Return Value

array

static protected bool hasTentativeTypeAttribute(array $attrGroups)

No description

Parameters

array $attrGroups

Return Value

bool

bool hasMutedProblem(int $stubProblemType)

No description

Parameters

int $stubProblemType

Return Value

bool

checkDeprecationTag($node)

No description

Parameters

$node

protected checkIfReturnTypeIsTentative(FunctionLike $node)

No description

Parameters

FunctionLike $node

protected checkReturnTag()

No description

static protected string[] handleType(Type|null $type)

No description

Parameters

Type|null $type

Return Value

string[]

static bool hasTentativeReturnTypeAttribute(FunctionLike $node)

No description

Parameters

FunctionLike $node

Return Value

bool

getParameter(string $parameterName)

No description

Parameters

string $parameterName