Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
DerivedClassScanner Class Reference

Public Member Functions

 __construct (ClassScanner $classScanner, DirectoryScanner $directoryScanner)
 
 getName ()
 
 getShortName ()
 
 isInstantiable ()
 
 isFinal ()
 
 isAbstract ()
 
 isInterface ()
 
 getParentClasses ()
 
 hasParentClass ()
 
 getParentClass ()
 
 getInterfaces ($returnClassScanners=false)
 
 getConstantNames ()
 Return a list of constant names.
 
 getConstants ($namesOnly=true)
 Return a list of constants.
 
 getConstant ($constantNameOrInfoIndex)
 Return a single constant by given name or index of info.
 
 hasConstant ($name)
 Verify if class or parent class has constant.
 
 getPropertyNames ()
 Return a list of property names.
 
 getProperties ($returnScannerProperty=false)
 
 getProperty ($propertyNameOrInfoIndex)
 Return a single property by given name or index of info.
 
 hasProperty ($name)
 Verify if class or parent class has property.
 
 getMethodNames ()
 
 getMethods ()
 
 getMethod ($methodNameOrInfoIndex)
 
 hasMethod ($name)
 Verify if class or parent class has method by given name.
 
- Public Member Functions inherited from ClassScanner
 __construct (array $classTokens, NameInformation $nameInformation=null)
 
 getAnnotations (Annotation\AnnotationManager $annotationManager)
 Get annotations.
 
 getDocComment ()
 Return documentation comment.
 
 getDocBlock ()
 Return documentation block.
 
 getName ()
 Return a name of class.
 
 getShortName ()
 Return short name of class.
 
 getLineStart ()
 Return number of first line.
 
 getLineEnd ()
 Return number of last line.
 
 isFinal ()
 Verify if class is final.
 
 isTrait ()
 Verify if class is a trait.
 
 isInstantiable ()
 Verify if class is instantiable.
 
 isAbstract ()
 Verify if class is an abstract class.
 
 isInterface ()
 Verify if class is an interface.
 
 hasParentClass ()
 Verify if class has parent.
 
 getParentClass ()
 Return a name of parent class.
 
 getInterfaces ()
 Return a list of interface names.
 
 getConstantNames ()
 Return a list of constant names.
 
 getConstants ($namesOnly=true)
 Return a list of constants.
 
 getConstant ($constantNameOrInfoIndex)
 Return a single constant by given name or index of info.
 
 hasConstant ($name)
 Verify if class has constant.
 
 getPropertyNames ()
 Return a list of property names.
 
 getProperties ()
 Return a list of properties.
 
 getProperty ($propertyNameOrInfoIndex)
 Return a single property by given name or index of info.
 
 hasProperty ($name)
 Verify if class has property.
 
 getTraits ()
 Retrieve any traits used by the class.
 
 getTraitNames ()
 Retrieve a list of trait names used by this class.
 
 getTraitAliases ()
 Retrieve a list of aliased traits used by the class.
 
 getMethodNames ()
 Return a list of method names.
 
 getMethods ()
 Return a list of methods.
 
 getMethod ($methodNameOrInfoIndex)
 Return a single method by given name or index of info.
 
 hasMethod ($name)
 Verify if class has method by given name.
 
 __toString ()
 

Protected Attributes

 $directoryScanner = null
 
 $classScanner = null
 
 $parentClassScanners = []
 
 $interfaceClassScanners = []
 
- Protected Attributes inherited from ClassScanner
 $isScanned = false
 
 $docComment = null
 
 $name = null
 
 $shortName = null
 
 $lineStart = null
 
 $lineEnd = null
 
 $isTrait = false
 
 $isFinal = false
 
 $isAbstract = false
 
 $isInterface = false
 
 $parentClass = null
 
 $shortParentClass = null
 
 $interfaces = []
 
 $shortInterfaces = []
 
 $tokens = []
 
 $nameInformation = null
 
 $infos = []
 
 $traits = []
 
 $methods = []
 

Additional Inherited Members

- Static Public Member Functions inherited from ClassScanner
static export ()
 
- Protected Member Functions inherited from ClassScanner
 getVisibilityForAlias ($aliasName)
 Retrieve visibility for a given alias.
 
 getBlockedTraitMethods ()
 Return an array of key = trait to keep, value = trait::method to ignore.
 
 scan ()
 Scan tokens.
 

Constructor & Destructor Documentation

__construct ( ClassScanner  $classScanner,
DirectoryScanner  $directoryScanner 
)
Parameters
ClassScanner$classScanner
DirectoryScanner$directoryScanner

Member Function Documentation

getConstant (   $constantNameOrInfoIndex)

Return a single constant by given name or index of info.

Parameters
string | int$constantNameOrInfoIndex
Exceptions
Exception\InvalidArgumentException
Returns
bool|ConstantScanner
getConstantNames ( )

Return a list of constant names.

Returns
array
getConstants (   $namesOnly = true)

Return a list of constants.

Parameters
bool$namesOnlySet false to return instances of ConstantScanner
Returns
array|ConstantScanner[]
getInterfaces (   $returnClassScanners = false)
Parameters
bool$returnClassScanners
Returns
array
getMethod (   $methodNameOrInfoIndex)
Parameters
int | string$methodNameOrInfoIndex
Returns
MethodScanner
Exceptions
Exception\InvalidArgumentException
getMethodNames ( )
Returns
array
getMethods ( )
Returns
MethodScanner[]
getName ( )
Returns
null|string
getParentClass ( )
Returns
null|string
getParentClasses ( )
Returns
array
getProperties (   $returnScannerProperty = false)
Parameters
bool$returnScannerProperty
Returns
array
getProperty (   $propertyNameOrInfoIndex)

Return a single property by given name or index of info.

Parameters
string | int$propertyNameOrInfoIndex
Exceptions
Exception\InvalidArgumentException
Returns
bool|PropertyScanner
getPropertyNames ( )

Return a list of property names.

Returns
array
getShortName ( )
Returns
null|string
hasConstant (   $name)

Verify if class or parent class has constant.

Parameters
string$name
Returns
bool
hasMethod (   $name)

Verify if class or parent class has method by given name.

Parameters
string$name
Returns
bool
hasParentClass ( )
Returns
bool
hasProperty (   $name)

Verify if class or parent class has property.

Parameters
string$name
Returns
bool
isAbstract ( )
Returns
bool
isFinal ( )
Returns
bool
isInstantiable ( )
Returns
bool
isInterface ( )
Returns
bool

Member Data Documentation

$classScanner = null
protected
$directoryScanner = null
protected
$interfaceClassScanners = []
protected
$parentClassScanners = []
protected