<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for WEBCentralizedShoppingCartGiftFundraisingSetLineItems
 * StructType
 * @subpackage Structs
 * @author Drupal NetForum xWeb PHP SDK Generator
 * @version 1.0.0
 * @license GPL-2.0-or-later https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * @see https://www.drupal.org/project/netforum
 * @generatedDate 2025-08-05
 * @generatedRelease Official
 * @generatedNetForumVersion 37
 */
#[\AllowDynamicProperties]
class WEBCentralizedShoppingCartGiftFundraisingSetLineItems extends AbstractStructBase
{
    /**
     * The oFundraisingGift
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType|null
     */
    protected ?\Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType $oFundraisingGift = null;
    /**
     * The oFeeCollection
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Drupal\netforum\xWeb\Generated\StructType\Fees|null
     */
    protected ?\Drupal\netforum\xWeb\Generated\StructType\Fees $oFeeCollection = null;
    /**
     * Constructor method for WEBCentralizedShoppingCartGiftFundraisingSetLineItems
     * @uses WEBCentralizedShoppingCartGiftFundraisingSetLineItems::setOFundraisingGift()
     * @uses WEBCentralizedShoppingCartGiftFundraisingSetLineItems::setOFeeCollection()
     * @param \Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType $oFundraisingGift
     * @param \Drupal\netforum\xWeb\Generated\StructType\Fees $oFeeCollection
     */
    public function __construct(?\Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType $oFundraisingGift = null, ?\Drupal\netforum\xWeb\Generated\StructType\Fees $oFeeCollection = null)
    {
        $this
            ->setOFundraisingGift($oFundraisingGift)
            ->setOFeeCollection($oFeeCollection);
    }
    /**
     * Get oFundraisingGift value
     * @return \Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType|null
     */
    public function getOFundraisingGift(): ?\Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType
    {
        return $this->oFundraisingGift;
    }
    /**
     * Set oFundraisingGift value
     * @param \Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType $oFundraisingGift
     * @return \Drupal\netforum\xWeb\Generated\StructType\WEBCentralizedShoppingCartGiftFundraisingSetLineItems
     */
    public function setOFundraisingGift(?\Drupal\netforum\xWeb\Generated\StructType\FundraisingGiftType $oFundraisingGift = null): self
    {
        $this->oFundraisingGift = $oFundraisingGift;
        
        return $this;
    }
    /**
     * Get oFeeCollection value
     * @return \Drupal\netforum\xWeb\Generated\StructType\Fees|null
     */
    public function getOFeeCollection(): ?\Drupal\netforum\xWeb\Generated\StructType\Fees
    {
        return $this->oFeeCollection;
    }
    /**
     * Set oFeeCollection value
     * @param \Drupal\netforum\xWeb\Generated\StructType\Fees $oFeeCollection
     * @return \Drupal\netforum\xWeb\Generated\StructType\WEBCentralizedShoppingCartGiftFundraisingSetLineItems
     */
    public function setOFeeCollection(?\Drupal\netforum\xWeb\Generated\StructType\Fees $oFeeCollection = null): self
    {
        $this->oFeeCollection = $oFeeCollection;
        
        return $this;
    }
}
