src/Manage/File.php
public function getFile($class)
    {
        if (is_null($this->count)) {
            return $this->fileHas($class)->getFile($class);
        }

        if (isset($this->files[$class])) {
            return $this->files[$class];
        }

        throw new FileException("File does not exists with given `{$class}` class.");
    }
public function getFile($class)
    {
        if (is_null($this->count)) {
            return $this->fileHas($class)->getFile($class);
        }

        if (isset($this->files[$class])) {
            return $this->files[$class];
        }

        throw new FileException("File does not exists with given `{$class}` class.");
    }
Get the file by class name.

@param $class

@throws \Symfony\Component\HttpFoundation\File\Exception\FileException;

@return \hanneskod\classtools\Iterator\SplFileInfo