. */ namespace Doctrine\Common\Persistence\Mapping\Driver; /** * Locate the file that contains the metadata information for a given class name. * * This behavior is inpependent of the actual content of the file. It just detects * the file which is responsible for the given class name. * * @author Benjamin Eberlei * @author Johannes M. Schmitt */ interface FileLocator { /** * Locate mapping file for the given class name. * * @param string $className * @return string */ function findMappingFile($className); /** * Get all class names that are found with this file locator. * * @param string $globalBasename Passed to allow excluding the basename * @return array */ function getAllClassNames($globalBasename); /** * Check if a file can be found for this class name. * * @return bool */ function fileExists($className); /** * Get all the paths that this file locator looks for mapping files. * * @return array */ function getPaths(); /** * Get the file extension that mapping files are suffixed with. * * @return string */ function getFileExtension(); }