Zend Framework
3.0
|
Class definitions based on a set of directories to be scanned. More...
Public Member Functions | |||||||
__construct (IntrospectionStrategy $introspectionStrategy=null) | |||||||
Constructor. | |||||||
setIntrospectionStrategy (IntrospectionStrategy $introspectionStrategy) | |||||||
Set introspection strategy. | |||||||
setAllowReflectionExceptions ($allowReflectionExceptions=true) | |||||||
getIntrospectionStrategy () | |||||||
Get introspection strategy. | |||||||
addDirectory ($directory) | |||||||
Add directory. | |||||||
addDirectoryScanner (DirectoryScanner $directoryScanner) | |||||||
Add directory scanner. | |||||||
addCodeScannerFile (FileScanner $fileScanner) | |||||||
Add code scanner file. | |||||||
compile () | |||||||
Compile. | |||||||
toArrayDefinition () | |||||||
getClasses () | |||||||
Retrieves classes in this definition.
| |||||||
hasClass ($class) | |||||||
Return whether the class exists in this definition.
| |||||||
getClassSupertypes ($class) | |||||||
Return the supertypes for this class.
| |||||||
getInstantiator ($class) | |||||||
| |||||||
hasMethods ($class) | |||||||
Return if there are injection methods.
| |||||||
hasMethod ($class, $method) | |||||||
| |||||||
getMethods ($class) | |||||||
Return an array of the injection methods for a given class.
| |||||||
hasMethodParameters ($class, $method) | |||||||
| |||||||
getMethodParameters ($class, $method) | |||||||
getMethodParameters() return information about a methods parameters.Should return an ordered named array of parameters for a given method. Each value should be an array, of length 4 with the following information:array( 0, // string|null: Type Name (if it exists) 1, // bool: whether this param is required 2, // string: fully qualified path to this parameter 3, // mixed: default value );
| |||||||
Protected Attributes | |
$isCompiled = false | |
$introspectionStrategy = null | |
$allowReflectionExceptions = false | |
$directoryScanner = null | |
$classes = [] | |
Class definitions based on a set of directories to be scanned.
__construct | ( | IntrospectionStrategy | $introspectionStrategy = null | ) |
Constructor.
null | IntrospectionStrategy | $introspectionStrategy |
addCodeScannerFile | ( | FileScanner | $fileScanner | ) |
Add code scanner file.
FileScanner | $fileScanner |
addDirectory | ( | $directory | ) |
Add directory.
string | $directory |
addDirectoryScanner | ( | DirectoryScanner | $directoryScanner | ) |
Add directory scanner.
DirectoryScanner | $directoryScanner |
compile | ( | ) |
Compile.
getClasses | ( | ) |
getClassSupertypes | ( | $class | ) |
Return the supertypes for this class.
string | $class |
Implements DefinitionInterface.
getInstantiator | ( | $class | ) |
getIntrospectionStrategy | ( | ) |
Get introspection strategy.
getMethodParameters | ( | $class, | |
$method | |||
) |
getMethodParameters() return information about a methods parameters.Should return an ordered named array of parameters for a given method. Each value should be an array, of length 4 with the following information:array( 0, // string|null: Type Name (if it exists) 1, // bool: whether this param is required 2, // string: fully qualified path to this parameter 3, // mixed: default value );
string | $class | |
string | $method |
Implements DefinitionInterface.
getMethods | ( | $class | ) |
Return an array of the injection methods for a given class.
string | $class |
Implements DefinitionInterface.
hasClass | ( | $class | ) |
Return whether the class exists in this definition.
string | $class |
Implements DefinitionInterface.
hasMethod | ( | $class, | |
$method | |||
) |
hasMethodParameters | ( | $class, | |
$method | |||
) |
hasMethods | ( | $class | ) |
Return if there are injection methods.
string | $class |
Implements DefinitionInterface.
setAllowReflectionExceptions | ( | $allowReflectionExceptions = true | ) |
bool | $allowReflectionExceptions |
setIntrospectionStrategy | ( | IntrospectionStrategy | $introspectionStrategy | ) |
Set introspection strategy.
IntrospectionStrategy | $introspectionStrategy |
toArrayDefinition | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |