class Macro implements MethodReflection

Methods

__construct(ClassReflection $classReflection, string $methodName, ClosureType $closureType)

Create a macro method reflection.

ClassReflection
getDeclaringClass()

Return the class the macro is registered on.

bool
isPrivate()

Determine whether the macro is private.

bool
isPublic()

Determine whether the macro is public.

TrinaryLogic
isFinal()

Determine whether the macro is final.

TrinaryLogic
isInternal()

Determine whether the macro is internal.

bool
isStatic()

Determine whether the macro is called statically.

void
setIsStatic(bool $isStatic)

Set the is static value.

string|null
getDocComment()

Return the macro docblock.

string
getName()

Return the macro name.

TrinaryLogic
isDeprecated()

Determine whether the macro is deprecated.

ClassMemberReflection
getPrototype()

Return the macro prototype.

array
getVariants()

Return the macro's variant, built from its callable.

string|null
getDeprecatedDescription()

Return the macro's deprecation description.

Type|null
getThrowType()

Return the exception type a known framework macro throws.

TrinaryLogic
hasSideEffects()

Determine whether the macro has side effects.

Details

at line 42
__construct(ClassReflection $classReflection, string $methodName, ClosureType $closureType)

Create a macro method reflection.

Parameters

ClassReflection $classReflection
string $methodName
ClosureType $closureType

at line 49
ClassReflection getDeclaringClass()

Return the class the macro is registered on.

Return Value

ClassReflection

at line 57
bool isPrivate()

Determine whether the macro is private.

Return Value

bool

at line 65
bool isPublic()

Determine whether the macro is public.

Return Value

bool

at line 73
TrinaryLogic isFinal()

Determine whether the macro is final.

Return Value

TrinaryLogic

at line 81
TrinaryLogic isInternal()

Determine whether the macro is internal.

Return Value

TrinaryLogic

at line 89
bool isStatic()

Determine whether the macro is called statically.

Return Value

bool

at line 97
void setIsStatic(bool $isStatic)

Set the is static value.

Parameters

bool $isStatic

Return Value

void

at line 105
string|null getDocComment()

Return the macro docblock.

Return Value

string|null

at line 113
string getName()

Return the macro name.

Return Value

string

at line 121
TrinaryLogic isDeprecated()

Determine whether the macro is deprecated.

Return Value

TrinaryLogic

at line 129
ClassMemberReflection getPrototype()

Return the macro prototype.

Return Value

ClassMemberReflection

at line 137
array getVariants()

Return the macro's variant, built from its callable.

Return Value

array

at line 151
string|null getDeprecatedDescription()

Return the macro's deprecation description.

Return Value

string|null

at line 159
Type|null getThrowType()

Return the exception type a known framework macro throws.

Return Value

Type|null

at line 172
TrinaryLogic hasSideEffects()

Determine whether the macro has side effects.

Return Value

TrinaryLogic