ClassFinder

Implements \ClassFinderInterface

Class Finder

category

System

package

Shared

subpackage

ClassFinder

Methods

Constructor

__construct(\ClassFinderSettingsInterface $settings, \DataCache $dataCache) 

Arguments

$dataCache

\DataCache

Destructor

__destruct() 

Update the cache file with the latest results.

Checks if $className a sub-class of $neededParentClassName

_hasNeededParent(string $className, string $neededParentClassName) : boolean

Arguments

$className

string

$neededParentClassName

string

Response

boolean

Checks if $classFile is allowed to be included

_isLoadableClassFile(string $classFile) : boolean

Arguments

$classFile

string

Response

boolean

Returns an associative array with classes that implement the given interface.

findByInterface(string $interfaceName) : array

Array format: [ClassName] => [ClassFullFilePath]

Throws
\RuntimeException

Arguments

$interfaceName

string

Response

array

Returns an associative array with classes that have the given class in their parent list.

findByParent(string $parentClassName) : array

Array format: [ClassName] => [ClassFullFilePath]

Arguments

$parentClassName

string

Response

array

Properties

availableClassesArray

availableClassesArray : array
var

Type(s)

array

allowedDirectories

allowedDirectories : array
var

Type(s)

array

disallowedDirectories

disallowedDirectories : array
var

Type(s)

array

dataCache

dataCache : \DataCache
var

Type(s)

\DataCache

cachedResults

cachedResults : array
var

Type(s)

array