Methods

Constructor

__construct(null | string | array $directory) 
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::__construct()

Parameters

$directory

nullstringarray

__ToString

__toString() 
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::__toString()

Add directory

addDirectory(\Zend\Code\Scanner\DirectoryScanner | string $directory) : void
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::addDirectory()

Parameters

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Add directory scanner

addDirectoryScanner(\Zend\Code\Scanner\DirectoryScanner $directoryScanner) : void
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::addDirectoryScanner()

Parameters

Add file scanner

addFileScanner(\Zend\Code\Scanner\FileScanner $fileScanner) : void
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::addFileScanner()

Parameters

Export

export() 
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::export()

Get class

getClass(string $class, bool $returnScannerClass, bool $returnDerivedScannerClass) : \Zend\Code\Scanner\ClassScanner | \Zend\Code\Scanner\DerivedClassScanner

Parameters

$class

string

$returnScannerClass

bool

$returnDerivedScannerClass

bool

Exceptions

\Zend\Code\Exception\RuntimeException

Returns

Get class names

getClassNames() : string[]
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::getClassNames()

Returns

string[]

Get classes

getClasses($returnScannerClass, bool $returnDerivedScannerClass) : string[]

Parameters

$returnScannerClass

$returnDerivedScannerClass

bool

Returns

string[]

Get files

getFiles(bool $returnFileScanners) : array
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::getFiles()

Parameters

$returnFileScanners

bool

Returns

array

getFunctions()

getFunctions($returnScannerClass) 

Parameters

$returnScannerClass

getIncludes()

getIncludes($returnScannerClass) 

Parameters

$returnScannerClass

Get namespaces

getNamespaces(bool $returnScannerClass) 

todo not implemented

Parameters

$returnScannerClass

bool

Check for a class

hasClass(string $class) : bool

Parameters

$class

string

Returns

bool

Create class to file scanner cache

createClassToFileScannerCache() : void
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::createClassToFileScannerCache()

Scan

scan() : void
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::scan()

 Properties

 

$classToFileScanner

$classToFileScanner : array
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::$$classToFileScanner
 

$directories

$directories : string[] | \Zend\Code\Scanner\DirectoryScanner[]
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::$$directories
 

$fileScanners

$fileScanners : \Zend\Code\Scanner\FileScanner[]
Inherited

inherited_from \Zend\Code\Scanner\DirectoryScanner::$$fileScanners
 

$isScanned

$isScanned : bool