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|ExtendedMethodReflection|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
Deprecated
use hasExpressionType instead
Implements
|
#
|
public
|
hasExpressionType(Expr $node): TrinaryLogic
|
#
|
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,
?Assertions $asserts = null,
?Type $selfOutType = null,
?string $phpDocComment = null,
Type[] $parameterOutTypes = [],
array<string, bool> $immediatelyInvokedCallableParameters = [],
array<string, Type> $phpDocClosureThisTypeParameters = [],
): 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,
?Assertions $asserts = null,
?string $phpDocComment = null,
Type[] $parameterOutTypes = [],
array<string, bool> $immediatelyInvokedCallableParameters = [],
array<string, Type> $phpDocClosureThisTypeParameters = [],
): self
|
#
|
public
|
enterNamespace(string $namespaceName): 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): ?ExtendedMethodReflection
|
#
|
public
|
getNakedMethod(Type $typeWithMethod, string $methodName): ?ExtendedMethodReflection
|
#
|
public
|
getPropertyReflection(Type $typeWithProperty, string $propertyName): ?PropertyReflection
|
#
|