\Pop\LoaderClassMapper

Mapper class

Summary

Methods
Properties
Constants
__construct()
addSource()
getSources()
hasSource()
clearSources()
generateClassMap()
getClassMap()
writeToFile()
No public properties found
No constants found
discoverFiles()
$sources
$map
$files
N/A
No private methods found
No private properties found
N/A

Properties

$sources

$sources : array

Source directories

Type

array

$map

$map : array

Class map

Type

array

$files

$files : array

Files

Type

array

Methods

__construct()

__construct(mixed  $source = null) 

Constructor

Instantiate the class mapper object

Parameters

mixed $source

addSource()

addSource(mixed  $source) : \Pop\Loader\ClassMapper

Add source directory or directories

Parameters

mixed $source

Throws

\Pop\Loader\Exception

Returns

\Pop\Loader\ClassMapper

getSources()

getSources() : array

Get sources

Returns

array

hasSource()

hasSource(string  $source) : boolean

Determine if a source directory has been added

Parameters

string $source

Returns

boolean

generateClassMap()

generateClassMap() : \Pop\Loader\ClassMapper

Generate a class map

Returns

\Pop\Loader\ClassMapper

getClassMap()

getClassMap() : array

Get the class map

Returns

array

writeToFile()

writeToFile(string  $output) : \Pop\Loader\ClassMapper

Write a class map to an output file

Parameters

string $output

Returns

\Pop\Loader\ClassMapper

discoverFiles()

discoverFiles() : void

Discover files from source directory