public static function buildFromSplFileInfo(\SplFileInfo $fileInfo)
    {
        $uniqueId = $fileInfo->getBasename();
        $file = $fileInfo->openFile();
        $query = '';

        while (!$file->eof()) {
            $query .= $file->fgets();
        }

        return new UnitOfWork(new Uid($uniqueId), new Workload($query), new \DateTime());
    }