Pantheon\Terminus\Commands\Backup\Automatic\InfoCommand::getSchedule PHP Method

getSchedule() public method

Retrieve the regular backup of your site's environment
public getSchedule ( string $site_env ) : Consolidation\OutputFormatters\StructuredData\PropertyList
$site_env string Site & environment to get the schedule of, in the format `site-name.env`.
return Consolidation\OutputFormatters\StructuredData\PropertyList
    public function getSchedule($site_env)
    {
        list(, $env) = $this->getSiteEnv($site_env);
        $schedule = $env->getBackups()->getBackupSchedule();
        if (is_null($schedule['daily_backup_hour'])) {
            $this->log()->notice('Backups are not currently scheduled to be run.');
        }
        return new PropertyList($schedule);
    }
InfoCommand