Class MethodReflection (namespace Nette\Reflection)
Reports information about a method.
ReflectionMethod | --MethodReflection
Public Method Summary | |
---|---|
static MethodReflection |
from
(string|object $class, string $method)
|
IAnnotation |
getAnnotation
(string $name)
Returns an annotation value.
|
array |
Returns all annotations.
|
Callback |
getCallback
()
|
ClassReflection |
|
array |
|
ExtensionReflection |
getExtension
()
|
void |
|
ClassReflection |
|
bool |
hasAnnotation
(string $name)
Has method specified annotation?
|
mixed |
invokeNamedArgs
(object $object, array $args)
Invokes method using named parameters.
|
void |
__call
($name, $args)
|
& void |
__get
($name)
|
void |
__isset
($name)
|
void |
__set
($name, $value)
|
void |
__toString
()
|
void |
__unset
($name)
|
Methods Inherited From ReflectionMethod (Internal Class) |
---|
constructor __construct ( $class_or_method, [$name = ] ), export ( $class, $name, [$return = ] ), getDeclaringClass ( ), getDocComment ( ), getEndLine ( ), getExtension ( ), getExtensionName ( ), getFileName ( ), getModifiers ( ), getName ( ), getNumberOfParameters ( ), getNumberOfRequiredParameters ( ), getParameters ( ), getPrototype ( ), getStartLine ( ), getStaticVariables ( ), invoke ( $object, $args ), invokeArgs ( $object, $args ), isAbstract ( ), isConstructor ( ), isDeprecated ( ), isDestructor ( ), isFinal ( ), isInternal ( ), isPrivate ( ), isProtected ( ), isPublic ( ), isStatic ( ), isUserDefined ( ), returnsReference ( ), __clone ( ), __toString ( ) |
Constant Summary |
---|
Constants Inherited From ReflectionMethod (Internal Class) |
---|
IS_ABSTRACT = 2, IS_FINAL = 4, IS_PRIVATE = 1024, IS_PROTECTED = 512, IS_PUBLIC = 256, IS_STATIC = 1 |
Variable Summary |
---|
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 29 frompublic static MethodReflection from (string|object $class, string $method)
|
|||||||||||||||
line 163 getAnnotationpublic IAnnotation getAnnotation (string $name) Returns an annotation value.
|
|||||||||||||||
line 175 getAnnotationspublic array getAnnotations () Returns all annotations.
|
|||||||||||||||
line 85 getCallbackpublic Callback getCallback ()
|
|||||||||||||||
line 117 getDeclaringClasspublic ClassReflection getDeclaringClass ()
|
|||||||||||||||
line 39 getDefaultParameterspublic array getDefaultParameters ()
|
|||||||||||||||
line 127 getExtensionpublic ExtensionReflection getExtension ()
|
|||||||||||||||
line 134 getParameterspublic void getParameters ()
|
|||||||||||||||
line 189 getReflectionpublic ClassReflection getReflection ()
|
|||||||||||||||
line 150 hasAnnotationpublic bool hasAnnotation (string $name) Has method specified annotation?
|
|||||||||||||||
line 62 invokeNamedArgspublic mixed invokeNamedArgs (object $object, array $args) Invokes method using named parameters.
|
|||||||||||||||
line 196 __callpublic void __call ($name, $args)
|
|||||||||||||||
line 203 __getpublic void & __get ($name)
|
|||||||||||||||
line 217 __issetpublic void __isset ($name)
|
|||||||||||||||
line 210 __setpublic void __set ($name, $value)
|
|||||||||||||||
line 92 __toStringpublic void __toString ()
|
|||||||||||||||
line 224 __unsetpublic void __unset ($name)
|