CoreFiles by mySites.guru
Domain.php72 lines, 1,237 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
a7a3ce0ed433fca0d2157cba33c0a02d
sha1
4952230d38da44088b558d7baf425e4edbc96b9f
sha256
0797bd72046784b0759e6c2241a7a603107ff318433b7bf38b03d2c31b5d4f93
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_privacy
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Privacy\Administrator\Export;

\defined('_JEXEC') or die;

/**
 * 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.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.