Methods | ||
---|---|---|
public
|
__construct(
ReflectionProvider $reflectionProvider,
InitializerExprTypeResolver $initializerExprTypeResolver,
FileTypeMapper $fileTypeMapper,
StubPhpDocProvider $stubPhpDocProvider,
PhpDocInheritanceResolver $phpDocInheritanceResolver,
PhpVersion $phpVersion,
PropertiesClassReflectionExtension[] $propertiesClassReflectionExtensions,
MethodsClassReflectionExtension[] $methodsClassReflectionExtensions,
string $displayName,
ReflectionClass|ReflectionEnum $reflection,
?string $anonymousFilename,
?TemplateTypeMap $resolvedTemplateTypeMap,
?ResolvedPhpDocBlock $stubPhpDocBlock,
?string $extraCacheKey = null,
)
|
# |
public
|
getNativeReflection(): ReflectionClass|ReflectionEnum
|
# |
public
|
getFileName(): ?string
|
# |
public
|
getFileNameWithPhpDocs(): ?string
|
# |
public
|
getParentClass(): ?ClassReflection
|
# |
public
|
getName(): class-string
|
# |
public
|
getDisplayName(bool $withTemplateTypes = true): string
|
# |
public
|
getCacheKey(): string
|
# |
public
|
getClassHierarchyDistances(): int[]
|
# |
public
|
allowsDynamicProperties(): bool
|
# |
public
|
hasProperty(string $propertyName): bool
|
# |
public
|
hasMethod(string $methodName): bool
|
# |
public
|
getMethod(string $methodName, ClassMemberAccessAnswerer $scope): ExtendedMethodReflection
|
# |
public
|
hasNativeMethod(string $methodName): bool
|
# |
public
|
getNativeMethod(string $methodName): ExtendedMethodReflection
|
# |
public
|
hasConstructor(): bool
|
# |
public
|
getConstructor(): ExtendedMethodReflection
|
# |
public
|
getProperty(string $propertyName, ClassMemberAccessAnswerer $scope): PropertyReflection
|
# |
public
|
hasNativeProperty(string $propertyName): bool
|
# |
public
|
getNativeProperty(string $propertyName): PhpPropertyReflection
|
# |
public
|
isAbstract(): bool
|
# |
public
|
isInterface(): bool
|
# |
public
|
isTrait(): bool
|
# |
public
|
isEnum(): bool
|
# |
public
|
isReadOnly(): bool
|
# |
public
|
isBackedEnum(): bool
|
# |
public
|
getBackedEnumType(): ?Type
|
# |
public
|
hasEnumCase(string $name): bool
|
# |
public
|
getEnumCases(): array<string, EnumCaseReflection>
|
# |
public
|
getEnumCase(string $name): EnumCaseReflection
|
# |
public
|
isClass(): bool
|
# |
public
|
isAnonymous(): bool
|
# |
public
|
is(string $className): bool
|
# |
public
|
isSubclassOf(string $className): bool
|
# |
public
|
implementsInterface(string $className): bool
|
# |
public
|
getParents(): ClassReflection[]
|
# |
public
|
getInterfaces(): ClassReflection[]
|
# |
public
|
getImmediateInterfaces(): ClassReflection[]
|
# |
public
|
getTraits(bool $recursive = false): array<string, ClassReflection>
|
# |
public
|
getParentClassesNames(): string[]
|
# |
public
|
hasConstant(string $name): bool
|
# |
public
|
getConstant(string $name): ConstantReflection
|
# |
public
|
hasTraitUse(string $traitName): bool
|
# |
public
|
getTypeAliases(): array<string, TypeAlias>
|
# |
public
|
getDeprecatedDescription(): ?string
|
# |
public
|
isDeprecated(): bool
|
# |
public
|
isBuiltin(): bool
|
# |
public
|
isInternal(): bool
|
# |
public
|
isFinal(): bool
|
# |
public
|
isImmutable(): bool
|
# |
public
|
hasConsistentConstructor(): bool
|
# |
public
|
isFinalByKeyword(): bool
|
# |
public
|
isAttributeClass(): bool
|
# |
public
|
getAttributeClassFlags(): int
|
# |
public
|
getTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
getActiveTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
getPossiblyIncompleteActiveTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
isGeneric(): bool
|
# |
public
|
typeMapFromList(array<int, Type> $types): TemplateTypeMap
|
# |
public
|
typeMapToList(TemplateTypeMap $typeMap): array<int, Type>
|
# |
public
|
withTypes(array<int, Type> $types): self
|
# |
public
|
getResolvedPhpDoc(): ?ResolvedPhpDocBlock
|
# |
public
|
getExtendsTags(): array<string, ExtendsTag>
|
# |
public
|
getImplementsTags(): array<string, ImplementsTag>
|
# |
public
|
getTemplateTags(): array<string, TemplateTag>
|
# |
public
|
getAncestors(): array<string, ClassReflection>
|
# |
public
|
getAncestorWithClassName(string $className): ?self
|
# |
public
|
getMixinTags(): array<MixinTag>
|
# |
public
|
getPropertyTags(): array<PropertyTag>
|
# |
public
|
getMethodTags(): array<MethodTag>
|
# |
public
|
getResolvedMixinTypes(): array<Type>
|
# |