CoreFiles by mySites.guru
Item.php64 lines, 1,120 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
800ad63334122eb833d976307c5b3922
sha1
6446dfe894df1385a12f42768264434f597bf67b
sha256
b9391b2ff4d9b6085edf655618233a1fdd68d48b31326b1cb560fe981cc76285
<?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 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-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.