| Methods |
public
|
__construct(
ClassReflection $declaringClass,
ClassMethod|PropertyHook $classMethod,
?string $hookForProperty,
string $fileName,
TemplateTypeMap $templateTypeMap,
Type[] $realParameterTypes,
Type[] $phpDocParameterTypes,
Type[] $realParameterDefaultValues,
array<string, list<AttributeReflection>> $parameterAttributes,
Type $realReturnType,
?Type $phpDocReturnType,
?Type $throwType,
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
bool $isFinal,
?bool $isPure,
bool $acceptsNamedArguments,
Assertions $assertions,
?Type $selfOutType,
?string $phpDocComment,
?ResolvedPhpDocBlock $resolvedPhpDoc,
array $parameterOutTypes,
array<string, bool> $immediatelyInvokedCallableParameters,
array<string, Type> $phpDocClosureThisTypeParameters,
bool $isConstructor,
list<AttributeReflection> $attributes,
)
|
#
|
public
|
getDeclaringClass(): ClassReflection
For inherited members, this returns the original declaring class,
not the class where the member was accessed.
For inherited members, this returns the original declaring class,
not the class where the member was accessed.
Implements
|
#
|
public
|
getPrototype(): ClassMemberReflection
For methods that override a parent method, this returns the parent's
method reflection. For methods with no parent, returns itself.
For methods that override a parent method, this returns the parent's
method reflection. For methods with no parent, returns itself.
Implements
|
#
|
public
|
getName(): string
|
#
|
public
|
isPropertyHook(): bool
|
#
|
public
|
getHookedPropertyName(): ?string
|
#
|
public
|
getPropertyHookName(): 'get'|'set'|null
|
#
|
public
|
isStatic(): bool
|
#
|
public
|
isPrivate(): bool
|
#
|
public
|
isPublic(): bool
|
#
|
public
|
isFinal(): TrinaryLogic
|
#
|
public
|
isFinalByKeyword(): TrinaryLogic
|
#
|
public
|
isBuiltin(): bool
|
#
|
public
|
getSelfOutType(): ?Type
Used for fluent interfaces where calling a method changes the generic
type parameters of $this (e.g. a builder pattern).
Used for fluent interfaces where calling a method changes the generic
type parameters of $this (e.g. a builder pattern).
Implements
|
#
|
public
|
returnsByReference(): TrinaryLogic
|
#
|
public
|
isAbstract(): TrinaryLogic
|
#
|
public
|
isConstructor(): bool
|
#
|
public
|
hasSideEffects(): TrinaryLogic
Void methods are always considered impure since they must do something
to be useful.
Void methods are always considered impure since they must do something
to be useful.
Overrides
Implements
|
#
|
public
|
getResolvedPhpDoc(): ?ResolvedPhpDocBlock
|
#
|