FileLocator
in
Locates the file that contains the metadata information for a given class name.
This behavior is independent of the actual content of the file. It just detects the file which is responsible for the given class name.
Tags
Table of Contents
- fileExists() : bool
- Checks if a file can be found for this class name.
- findMappingFile() : string
- Locates mapping file for the given class name.
- getAllClassNames() : array<string|int, mixed>
- Gets all class names that are found with this file locator.
- getFileExtension() : string
- Gets the file extension that mapping files are suffixed with.
- getPaths() : array<string|int, mixed>
- Gets all the paths that this file locator looks for mapping files.
Methods
fileExists()
Checks if a file can be found for this class name.
public
fileExists(string $className) : bool
Parameters
- $className : string
Return values
bool —findMappingFile()
Locates mapping file for the given class name.
public
findMappingFile(string $className) : string
Parameters
- $className : string
Return values
string —getAllClassNames()
Gets all class names that are found with this file locator.
public
getAllClassNames(string $globalBasename) : array<string|int, mixed>
Parameters
- $globalBasename : string
-
Passed to allow excluding the basename.
Return values
array<string|int, mixed> —getFileExtension()
Gets the file extension that mapping files are suffixed with.
public
getFileExtension() : string
Return values
string —getPaths()
Gets all the paths that this file locator looks for mapping files.
public
getPaths() : array<string|int, mixed>