Class NClassReflection
Reports information about a class.
- ReflectionClass implements Reflector
-
NClassReflection
public static
NClassReflection
|
#
from(
string|object
$class
)
Parameters$class string|object |
public
|
#
__toString(
)
|
public
bool
|
#
hasEventProperty(
$name
)
|
public
NClassReflection
|
#
setExtensionMethod(
string
$name,
mixed
$callback
)
Adds a method to class. Adds a method to class. Parameters$name string method name$callback mixed callback or closureReturnsNClassReflection provides a fluent interface
|
public
mixed
|
#
getExtensionMethod(
string
$name
)
Returns extension method. Returns extension method. Parameters$name string method name |
public
NMethodReflection
|
#
getConstructor(
)
|
public
NExtensionReflection
|
#
getExtension(
)
|
public
|
#
getInterfaces(
)
|
public
NMethodReflection
|
#
getMethod(
$name
)
|
public
|
#
getMethods(
$filter = -1
)
|
public
NClassReflection
|
#
getParentClass(
)
|
public
|
#
getProperties(
$filter = -1
)
|
public
NPropertyReflection
|
#
getProperty(
$name
)
|
public
bool
|
#
hasAnnotation(
string
$name
)
Has class specified annotation? Has class specified annotation? Parameters$name string |
public
IAnnotation
|
#
getAnnotation(
string
$name
)
Returns an annotation value. Returns an annotation value. Parameters$name string |
public
array
|
#
getAnnotations(
)
Returns all annotations. Returns all annotations. |
public
NClassReflection
|
#
getReflection(
)
|
public
|
#
__call(
$name,
$args
)
|
public
&
|
#
__get(
$name
)
|
public
|
#
__set(
$name,
$value
)
|
public
|
#
__isset(
$name
)
|
public
|
#
__unset(
$name
)
|
Methods Inherited From ReflectionClass
export(), __construct(), __toString(), getName(), isInternal(), isUserDefined(), isInstantiable(), getFileName(), getStartLine(), getEndLine(), getDocComment(), getConstructor(), hasMethod(), getMethod(), getMethods(), hasProperty(), getProperty(), getProperties(), hasConstant(), getConstants(), getConstant(), getInterfaces(), getInterfaceNames(), isInterface(), isAbstract(), isFinal(), getModifiers(), isInstance(), newInstance(), newInstanceArgs(), getParentClass(), isSubclassOf(), getStaticProperties(), getStaticPropertyValue(), setStaticPropertyValue(), getDefaultProperties(), isIterateable(), implementsInterface(), getExtension(), getExtensionName(), inNamespace(), getNamespaceName(), getShortName()
Constants Inherited From ReflectionClass
IS_IMPLICIT_ABSTRACT, IS_EXPLICIT_ABSTRACT, IS_FINAL
Properties Inherited From ReflectionClass
$name