Brotzka\DotenvEditor\DotenvEditor::getFile PHP Method

getFile() protected method

Returns the file for the given backup-timestamp
protected getFile ( $timestamp ) : string
$timestamp
return string
    protected function getFile($timestamp)
    {
        $file = $this->getBackupPath() . $timestamp . "_env";
        if (file_exists($file)) {
            return $file;
        } else {
            throw new DotEnvException(trans('dotenv-editor::class.requested_backup_not_found'), 0);
        }
    }