CoreFiles by mySites.guru
Item.php64 lines, 1,121 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
76b4cde754c3b2e90ba22912d523de10
sha1
42027ab754199652d365d3d6eec56e6b51941f3b
sha256
ca12ecba91619ded76e1e3490566223cee79eed036990835eca110dc59935a4c
<?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 a single item within a domain.
 *
 * An item is typically a single row from a database table.
 *
 * @since  3.9.0
 */
class Item
{
	/**
	 * The primary identifier of this item, typically the primary key for a database row.
	 *
	 * @var    integer
	 * @since  3.9.0
	 */
	public $id;

	/**
	 * The fields belonging to this item
	 *
	 * @var    Field[]
	 * @since  3.9.0
	 */
	protected $fields = [];

	/**
	 * Add a field to the item
	 *
	 * @param   Field  $field  The field to add
	 *
	 * @return  void
	 *
	 * @since   3.9.0
	 */
	public function addField(Field $field)
	{
		$this->fields[] = $field;
	}

	/**
	 * Get the item's fields
	 *
	 * @return  Field[]
	 *
	 * @since   3.9.0
	 */
	public function getFields()
	{
		return $this->fields;
	}
}

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.