CoreFiles by mySites.guru
Domain.php71 lines, 1,338 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
48deeee4040e4a33ebc243b392009c1b
sha1
da94902752fdec0ba3fd59a50fd31d1959c46475
sha256
32492e232a0e19c65f587de419ba35ff0669a5ae67a720f380d9060dca57117c
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_privacy
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Privacy\Administrator\Export;

/**
 * Data object representing all data contained in a domain.
 *
 * A domain is typically a single database table and the items within the domain are separate rows from the table.
 *
 * @since  3.9.0
 */
class Domain
{
    /**
     * The name of this domain
     *
     * @var    string
     * @since  3.9.0
     */
    public $name;

    /**
     * A short description of the data in this domain
     *
     * @var    string
     * @since  3.9.0
     */
    public $description;

    /**
     * The items belonging to this domain
     *
     * @var    Item[]
     * @since  3.9.0
     */
    protected $items = [];

    /**
     * Add an item to the domain
     *
     * @param   Item  $item  The item to add
     *
     * @return  void
     *
     * @since   3.9.0
     */
    public function addItem(Item $item)
    {
        $this->items[] = $item;
    }

    /**
     * Get the domain's items
     *
     * @return  Item[]
     *
     * @since   3.9.0
     */
    public function getItems()
    {
        return $this->items;
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.