Platformsh\Cli\Command\Db\DbDumpCommand::getDefaultDumpFilename PHP Method

getDefaultDumpFilename() protected method

Get the default filename for an SQL dump.
protected getDefaultDumpFilename ( Platformsh\Client\Model\Project $project, Platformsh\Client\Model\Environment $environment, string | null $appName = null, string | null $timestamp = null ) : string
$project Platformsh\Client\Model\Project
$environment Platformsh\Client\Model\Environment
$appName string | null
$timestamp string | null
return string
    protected function getDefaultDumpFilename(Project $project, Environment $environment, $appName = null, $timestamp = null)
    {
        $filename = $project->id . '--' . $environment->id;
        if ($appName !== null) {
            $filename .= '--' . $appName;
        }
        if ($timestamp !== null) {
            $filename .= '--' . $timestamp;
        }
        $filename .= '--dump.sql';
        return $filename;
    }