Class ClassReflection (namespace Nette\Reflection)


Reports information about a class.

ReflectionClass
   |
   --ClassReflection
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Reflection/ClassReflection.php (line 21)
Public Method Summary
static ClassReflection
from (string|object $class)
IAnnotation
getAnnotation (string $name)
Returns an annotation value.
array
Returns all annotations.
MethodReflection
ExtensionReflection
mixed
getExtensionMethod (string $name)
Returns extension method.
void
MethodReflection
getMethod ($name)
void
getMethods ([$filter = -1])
ClassReflection
void
getProperties ([$filter = -1])
PropertyReflection
getProperty ($name)
ClassReflection
bool
hasAnnotation (string $name)
Has class specified annotation?
bool
ClassReflection
setExtensionMethod (string $name, mixed $callback)
Adds a method to class.
void
__call ($name, $args)
& void
__get ($name)
void
__isset ($name)
void
__set ($name, $value)
void
void
__unset ($name)
Methods Inherited From ReflectionClass (Internal Class)
constructor __construct ( $argument ), export ( $argument, [$return = ] ), getConstant ( $name ), getConstants ( ), getConstructor ( ), getDefaultProperties ( ), getDocComment ( ), getEndLine ( ), getExtension ( ), getExtensionName ( ), getFileName ( ), getInterfaceNames ( ), getInterfaces ( ), getMethod ( $name ), getMethods ( [$filter = ] ), getModifiers ( ), getName ( ), getParentClass ( ), getProperties ( [$filter = ] ), getProperty ( $name ), getStartLine ( ), getStaticProperties ( ), getStaticPropertyValue ( $name, [$default = ] ), hasConstant ( $name ), hasMethod ( $name ), hasProperty ( $name ), implementsInterface ( $interface ), isAbstract ( ), isFinal ( ), isInstance ( $object ), isInstantiable ( ), isInterface ( ), isInternal ( ), isIterateable ( ), isSubclassOf ( $class ), isUserDefined ( ), newInstance ( $args ), newInstanceArgs ( [$args = ] ), setStaticPropertyValue ( $name, $value ), __clone ( ), __toString ( )
Constant Summary
Constants Inherited From ReflectionClass (Internal Class)
IS_EXPLICIT_ABSTRACT = 32, IS_FINAL = 64, IS_IMPLICIT_ABSTRACT = 16
Variable Summary

Method Details

line 33

from

public static ClassReflection from (string|object $class)

Input
string|object $class
Output
ClassReflection  

line 233

getAnnotation

public IAnnotation getAnnotation (string $name)

Returns an annotation value.

Input
string $name
Output
IAnnotation  

line 245

getAnnotations

public array getAnnotations ()

Returns all annotations.

Output
array  

line 143

getConstructor

public MethodReflection getConstructor ()

Output
MethodReflection  

line 153

getExtension

public ExtensionReflection getExtension ()

Output
ExtensionReflection  

line 82

getExtensionMethod

public mixed getExtensionMethod (string $name)

Returns extension method.

Input
string $name method name
Output
mixed  

line 160

getInterfaces

public void getInterfaces ()

Output
void  

line 170

getMethod

public MethodReflection getMethod ($name)

Input
$name
Output
MethodReflection  

line 177

getMethods

public void getMethods ([$filter = -1])

Input
$filter
Output
void  

line 187

getParentClass

public ClassReflection getParentClass ()

Output
ClassReflection  

line 194

getProperties

public void getProperties ([$filter = -1])

Input
$filter
Output
void  

line 204

getProperty

public PropertyReflection getProperty ($name)

Input
$name
Output
PropertyReflection  

line 259

getReflection

public ClassReflection getReflection ()

Output
ClassReflection  

line 220

hasAnnotation

public bool hasAnnotation (string $name)

Has class specified annotation?

Input
string $name
Output
bool  

line 50

hasEventProperty

public bool hasEventProperty ($name)

Input
$name
Output
bool  

line 67

setExtensionMethod

public ClassReflection setExtensionMethod (string $name, mixed $callback)

Adds a method to class.

Input
string $name method name
mixed $callback callback or closure
Output
ClassReflection provides a fluent interface

line 266

__call

public void __call ($name, $args)

Input
$name
$args
Output
void  

line 273

__get

public void & __get ($name)

Input
$name
Output
& void  

line 287

__isset

public void __isset ($name)

Input
$name
Output
void  

line 280

__set

public void __set ($name, $value)

Input
$name
$value
Output
void  

line 40

__toString

public void __toString ()

Output
void  

line 294

__unset

public void __unset ($name)

Input
$name
Output
void