HM\BackUpWordPress\Backup_Engine::get_warnings PHP Method

get_warnings() public method

Get the array of warnings encountered during the backup process.
public get_warnings ( string | null $context = null ) : array
$context string | null The context for the warning, usually the Backup Engine that encountered the warning.
return array The array of warnings.
    public function get_warnings($context = null)
    {
        // Only return a specific contexts errors.
        if (!empty($context)) {
            return isset($this->warnings[$context]) ? $this->warnings[$context] : array();
        }
        return $this->warnings;
    }