Methods

Constructor

__construct(null | string | array $directory) 

Parameters

$directory

nullstringarray

__ToString

__toString() 

todo implement method

Add directory

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

Add directory scanner

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

Parameters

Add file scanner

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

Parameters

Export

export() 

todo implement method

Get class

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

Parameters

$class

string

$returnDerivedScannerClass

bool

Exceptions

\Zend\Code\Exception\InvalidArgumentException

Returns

Get class names

getClassNames() : string[]

Returns

string[]

Get classes

getClasses(bool $returnDerivedScannerClass) : string[]

Parameters

$returnDerivedScannerClass

bool

Returns

string[]

Get files

getFiles(bool $returnFileScanners) : array

Parameters

$returnFileScanners

bool

Returns

array

Get namespace

getNamespaces() 

todo implement method

Check for a class

hasClass(string $class) : bool

Parameters

$class

string

Returns

bool

Create class to file scanner cache

createClassToFileScannerCache() : void

Scan

scan() : void

 Properties

 

$classToFileScanner

$classToFileScanner : array

 

$directories

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

 

$fileScanners

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

 

$isScanned

$isScanned : bool