HEX
Server: Apache
System: Linux 244.240.109.208.host.secureserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: icsla (1002)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/icsla/.trash/TEST/libraries/src/Updater/DownloadSource.php
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Updater;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Data object representing a download source given as part of an update's `<downloads>` element
 *
 * @since  3.8.3
 */
class DownloadSource
{
    /**
     * Defines a BZIP2 download package
     *
     * @var    string
     * @since  3.8.4
     */
    public const FORMAT_TAR_BZIP = 'bz2';

    /**
     * Defines a TGZ download package
     *
     * @var    string
     * @since  3.8.4
     */
    public const FORMAT_TAR_GZ = 'gz';

    /**
     * Defines a ZIP download package
     *
     * @var    string
     * @since  3.8.3
     */
    public const FORMAT_ZIP = 'zip';

    /**
     * Defines a full package download type
     *
     * @var    string
     * @since  3.8.3
     */
    public const TYPE_FULL = 'full';

    /**
     * Defines a patch package download type
     *
     * @var    string
     * @since  3.8.4
     */
    public const TYPE_PATCH = 'patch';

    /**
     * Defines an upgrade package download type
     *
     * @var    string
     * @since  3.8.4
     */
    public const TYPE_UPGRADE = 'upgrade';

    /**
     * The download type
     *
     * @var    string
     * @since  3.8.3
     */
    public $type = self::TYPE_FULL;

    /**
     * The download file's format
     *
     * @var    string
     * @since  3.8.3
     */
    public $format = self::FORMAT_ZIP;

    /**
     * The URL to retrieve the package from
     *
     * @var    string
     * @since  3.8.3
     */
    public $url;
}