CoreFiles by mySites.guru
Item.php63 lines, 1,201 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
8ddb2fc317a37fc15a12d93e28392344
sha1
233a50529cadae79b9c108172ee7d3f2513a6aad
sha256
fd62f6420f2159ec1d55040a35b115366b50712654339507a8f7184914eea60b
<?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 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.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.