Methods | ||
---|---|---|
public
|
__construct(
ReflectionProvider $reflectionProvider,
InitializerExprTypeResolver $initializerExprTypeResolver,
FileTypeMapper $fileTypeMapper,
StubPhpDocProvider $stubPhpDocProvider,
PhpDocInheritanceResolver $phpDocInheritanceResolver,
PhpVersion $phpVersion,
SignatureMapProvider $signatureMapProvider,
PropertiesClassReflectionExtension[] $propertiesClassReflectionExtensions,
MethodsClassReflectionExtension[] $methodsClassReflectionExtensions,
AllowedSubTypesClassReflectionExtension[] $allowedSubTypesClassReflectionExtensions,
RequireExtendsPropertiesClassReflectionExtension $requireExtendsPropertiesClassReflectionExtension,
RequireExtendsMethodsClassReflectionExtension $requireExtendsMethodsClassReflectionExtension,
string $displayName,
ReflectionClass|ReflectionEnum $reflection,
?string $anonymousFilename,
?TemplateTypeMap $resolvedTemplateTypeMap,
?ResolvedPhpDocBlock $stubPhpDocBlock,
string[] $universalObjectCratesClasses,
?string $extraCacheKey = null,
?TemplateTypeVarianceMap $resolvedCallSiteVarianceMap = 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
|
getClassTypeDescription(): Interface|Trait|Enum|Class
|
# |
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(): list<class-string>
|
# |
public
|
hasConstant(string $name): bool
|
# |
public
|
getConstant(string $name): ClassConstantReflection
|
# |
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
|
acceptsNamedArguments(): bool
|
# |
public
|
isFinalByKeyword(): bool
|
# |
public
|
isAttributeClass(): bool
|
# |
public
|
getAttributeClassFlags(): int
|
# |
public
|
getTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
getActiveTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
getPossiblyIncompleteActiveTemplateTypeMap(): TemplateTypeMap
|
# |
public
|
getCallSiteVarianceMap(): TemplateTypeVarianceMap
|
# |
public
|
isGeneric(): bool
|
# |
public
|
typeMapFromList(array<int, Type> $types): TemplateTypeMap
|
# |
public
|
varianceMapFromList(array<int, TemplateTypeVariance> $variances): TemplateTypeVarianceMap
|
# |
public
|
typeMapToList(TemplateTypeMap $typeMap): array<int, Type>
|
# |
public
|
varianceMapToList(TemplateTypeVarianceMap $varianceMap): array<int, TemplateTypeVariance>
|
# |
public
|
withTypes(array<int, Type> $types): self
|
# |
public
|
withVariances(array<int, TemplateTypeVariance> $variances): 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
|
getRequireExtendsTags(): array<RequireExtendsTag>
|
# |
public
|
getRequireImplementsTags(): array<RequireImplementsTag>
|
# |
public
|
getPropertyTags(): array<PropertyTag>
|
# |
public
|
getMethodTags(): array<MethodTag>
|
# |
public
|
getResolvedMixinTypes(): array<Type>
|
# |
public
|
getAllowedSubTypes(): array<Type>|null
|
# |