PHPEnum
class PHPEnum extends PHPClass (View source)
Traits
Properties
| Link[] | $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 | ||
| PHPMethod[] | $methods | from BasePHPClass | |
| PHPClassConstant[] | $constants | from BasePHPClass | |
| $isFinal | from BasePHPClass | ||
| false|string|null | $parentClass | from PHPClass | |
| $interfaces | from PHPClass | ||
| PHPProperty[] | $properties | from PHPClass | |
| $isReadonly | from PHPClass | ||
| $enumCases |
Methods
readObjectFromStubNode(Node $node)
No description
static array
convertParsedTypeToArray(Name|Identifier|NullableType|string|UnionType|null|Type $type)
No description
from
BasePHPElement
static string
getTypeNameFromNode(Name|Identifier|NullableType|string $type)
No description
from
BasePHPElement
static array
findAvailableVersionsRangeFromAttribute(array $attrGroups)
No description
from
BasePHPElement
PHPClassConstant|null
getConstant(string $constantName, true $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
from
BasePHPClass
PHPMethod|null
getMethod(string $name, $shouldSuitCurrentPhpVersion = true, bool $fromReflection = false)
No description
from
BasePHPClass
PHPProperty|null
getProperty($propertyName, false $fromReflection = false)
No description
from
PHPClass
PHPClassConstant|null
getCase(string $caseName, false $fromReflection = false)
No description
Details
protected
collectTags(Node $node)
No description
BasePHPElement
readObjectFromReflection(Reflector $reflectionObject)
No description
BasePHPElement
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 protected array
getReflectionTypeAsArray(ReflectionType|null $type)
No description
static protected array
convertParsedTypeToArray(Name|Identifier|NullableType|string|UnionType|null|Type $type)
No description
static protected string
getTypeNameFromNode(Name|Identifier|NullableType|string $type)
No description
static protected string[]
findTypesFromAttribute(array $attrGroups)
No description
static protected array
findAvailableVersionsRangeFromAttribute(array $attrGroups)
No description
static protected bool
hasTentativeTypeAttribute(array $attrGroups)
No description
bool
hasMutedProblem(int $stubProblemType)
No description
checkDeprecationTag($node)
No description
addConstant(PHPClassConstant $parsedConstant)
No description
PHPClassConstant|null
getConstant(string $constantName, true $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
addMethod(PHPMethod $parsedMethod)
No description
PHPMethod|null
getMethod(string $name, $shouldSuitCurrentPhpVersion = true, bool $fromReflection = false)
No description
PHPMethod|null
getMethodByHash(string $methodHash)
No description
addProperty(PHPProperty $parsedProperty)
No description
PHPProperty|null
getProperty($propertyName, false $fromReflection = false)
No description
addEnumCase(PHPEnumCase $parsedEnumCase)
No description
PHPClassConstant|null
getCase(string $caseName, false $fromReflection = false)
No description