<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetRichiestaCartellino_Request StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetRichiestaCartellino_Request
 * @subpackage Structs
 */
class GetRichiestaCartellino_Request extends AbstractStructBase
{
    /**
     * The IDRichiesta
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var RichiestaCartellino_Identificativo
     */
    public $IDRichiesta;
    /**
     * Constructor method for GetRichiestaCartellino_Request
     * @uses GetRichiestaCartellino_Request::setIDRichiesta()
     * @param RichiestaCartellino_Identificativo $iDRichiesta
     */
    public function __construct(RichiestaCartellino_Identificativo $iDRichiesta = null)
    {
        $this
            ->setIDRichiesta($iDRichiesta);
    }
    /**
     * Get IDRichiesta value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return RichiestaCartellino_Identificativo|null
     */
    public function getIDRichiesta()
    {
        return isset($this->IDRichiesta) ? $this->IDRichiesta : null;
    }
    /**
     * Set IDRichiesta value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param RichiestaCartellino_Identificativo $iDRichiesta
     * @return GetRichiestaCartellino_Request
     */
    public function setIDRichiesta(RichiestaCartellino_Identificativo $iDRichiesta = null)
    {
        if (is_null($iDRichiesta) || (is_array($iDRichiesta) && empty($iDRichiesta))) {
            unset($this->IDRichiesta);
        } else {
            $this->IDRichiesta = $iDRichiesta;
        }
        return $this;
    }
}
