Methods |
public
|
getFile(): string
|
#
|
public
|
getFileDescription(): string
|
#
|
public
|
isDeclareStrictTypes(): bool
|
#
|
public
|
isInClass(): bool
|
#
|
public
|
isInTrait(): bool
|
#
|
public
|
getClassReflection(): ?ClassReflection
|
#
|
public
|
getTraitReflection(): ?ClassReflection
|
#
|
public
|
getFunction(): FunctionReflection|MethodReflection|null
|
#
|
public
|
getFunctionName(): ?string
|
#
|
public
|
getNamespace(): ?string
|
#
|
public
|
getParentScope(): ?Scope
|
#
|
public
|
canAnyVariableExist(): bool
|
#
|
public
|
hasVariableType(string $variableName): TrinaryLogic
|
#
|
public
|
getVariableType(string $variableName): Type
|
#
|
public
|
getDefinedVariables(): array<int, string>
|
#
|
public
|
hasConstant(Name $name): bool
|
#
|
public
|
isInAnonymousFunction(): bool
|
#
|
public
|
getAnonymousFunctionReflection(): ?ParametersAcceptor
|
#
|
public
|
getAnonymousFunctionReturnType(): ?Type
|
#
|
public
|
getType(Expr $node): Type
|
#
|
public
|
getNativeType(Expr $expr): Type
|
#
|
public
|
doNotTreatPhpDocTypesAsCertain(): Scope
|
#
|
protected
|
getTypeFromArrayDimFetch(ArrayDimFetch $arrayDimFetch, Type $offsetType, Type $offsetAccessibleType): Type
|
#
|
public
|
resolveName(Name $name): string
|
#
|
public
|
resolveTypeByName(Name $name): TypeWithClassName
|
#
|
public
|
getTypeFromValue(mixed $value): Type
|
#
|
public
|
isSpecified(Expr $node): bool
|
#
|
public
|
isInClassExists(string $className): bool
|
#
|
public
|
isInFunctionExists(string $functionName): bool
|
#
|
public
|
enterClass(ClassReflection $classReflection): self
|
#
|
public
|
enterClassMethod(
ClassMethod $classMethod,
TemplateTypeMap $templateTypeMap,
Type[] $phpDocParameterTypes,
?Type $phpDocReturnType,
?Type $throwType,
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
bool $isFinal,
?bool $isPure = null,
bool $acceptsNamedArguments = true,
): self
|
#
|
public
|
enterFunction(
Function_ $function,
TemplateTypeMap $templateTypeMap,
Type[] $phpDocParameterTypes,
?Type $phpDocReturnType,
?Type $throwType,
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
bool $isFinal,
?bool $isPure = null,
bool $acceptsNamedArguments = true,
): self
|
#
|
public
|
isInClosureBind(): bool
|
#
|
public
|
enterAnonymousFunction(Closure $closure, ParameterReflection[]|null $callableParameters = null): self
|
#
|
public
|
enterArrowFunction(ArrowFunction $arrowFunction, ParameterReflection[]|null $callableParameters = null): self
|
#
|
public
|
getFunctionType(Name|Identifier|ComplexType|null $type, bool $isNullable, bool $isVariadic): Type
|
#
|
public
|
isInExpressionAssign(Expr $expr): bool
|
#
|
public
|
isUndefinedExpressionAllowed(Expr $expr): bool
|
#
|
public
|
filterByTruthyValue(Expr $expr): MutatingScope
|
#
|
public
|
filterByFalseyValue(Expr $expr): MutatingScope
|
#
|
public
|
isInFirstLevelStatement(): bool
|
#
|
public
|
canAccessProperty(PropertyReflection $propertyReflection): bool
|
#
|
public
|
canCallMethod(MethodReflection $methodReflection): bool
|
#
|
public
|
canAccessConstant(ConstantReflection $constantReflection): bool
|
#
|
public
|
getMethodReflection(Type $typeWithMethod, string $methodName): ?MethodReflection
|
#
|
public
|
getPropertyReflection(Type $typeWithProperty, string $propertyName): ?PropertyReflection
|
#
|