code: 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.");
      }
docs: Get the file by class name.
  
  @param $class
  
  @throws \Symfony\Component\HttpFoundation\File\Exception\FileException;
  
  @return \hanneskod\classtools\Iterator\SplFileInfo