Yab\Quarx\Services\FileService::getFileClass PHP Method

getFileClass() public static method

Generate a name from the file path.
public static getFileClass ( string $file ) : string
$file string File path
return string
    public static function getFileClass($file)
    {
        $sections = explode(DIRECTORY_SEPARATOR, $file);
        $fileName = $sections[count($sections) - 1];
        $class = str_replace('.php', '', $fileName);
        return $class;
    }