PHP Class Nette\Reflection\ClassType

Author: David Grudl
Inheritance: extends ReflectionClass
Show file Open project: nette/reflection Class Usage Examples

Public Methods

Method Description
__toString ( )
from ( $class ) : self
getAnnotation ( $name ) : Nette\Reflection\IAnnotation Returns an annotation value.
getAnnotations ( ) : Nette\Reflection\IAnnotation[][] Returns all annotations.
getConstructor ( ) : Method | null
getDescription ( ) : string Returns value of annotation 'description'.
getExtension ( ) : Extension | null
getInterfaces ( ) : self[]
getMethod ( $name ) : Method
getMethods ( $filter ) : Method[]
getParentClass ( ) : self | null
getProperties ( $filter ) : Property[]
getProperty ( $name ) : Property
hasAnnotation ( $name ) : boolean Has class specified annotation?
is ( $type ) : boolean

Method Details

__toString() public method

public __toString ( )

from() public static method

public static from ( $class ) : self
return self

getAnnotation() public method

Returns an annotation value.
public getAnnotation ( $name ) : Nette\Reflection\IAnnotation
return Nette\Reflection\IAnnotation

getAnnotations() public method

Returns all annotations.
public getAnnotations ( ) : Nette\Reflection\IAnnotation[][]
return Nette\Reflection\IAnnotation[][]

getConstructor() public method

public getConstructor ( ) : Method | null
return Method | null

getDescription() public method

Returns value of annotation 'description'.
public getDescription ( ) : string
return string

getExtension() public method

public getExtension ( ) : Extension | null
return Extension | null

getInterfaces() public method

public getInterfaces ( ) : self[]
return self[]

getMethod() public method

public getMethod ( $name ) : Method
return Method

getMethods() public method

public getMethods ( $filter ) : Method[]
return Method[]

getParentClass() public method

public getParentClass ( ) : self | null
return self | null

getProperties() public method

public getProperties ( $filter ) : Property[]
return Property[]

getProperty() public method

public getProperty ( $name ) : Property
return Property

hasAnnotation() public method

Has class specified annotation?
public hasAnnotation ( $name ) : boolean
return boolean

is() public method

public is ( $type ) : boolean
return boolean