CoreFiles by mySites.guru
Domain.php72 lines, 1,236 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
f034018012177f13ac715e05d3d2b4ee
sha1
e70a0f0c9f2331dede3ffd59a9eac24225ff55b6
sha256
dd99ffd60a66944d6814126b97d2ab998ac0581130da35e938d910fb909e8ff5
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_privacy
 *
 * @copyright   Copyright (C) 2005 - 2019 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-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.