<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DeleteRichiestaCartellino_Request StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:DeleteRichiestaCartellino_Request
 * @subpackage Structs
 */
class DeleteRichiestaCartellino_Request extends AbstractStructBase
{
    /**
     * The IdentificativoRichiesta
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var RichiestaCartellino_Identificativo
     */
    public $IdentificativoRichiesta;
    /**
     * Constructor method for DeleteRichiestaCartellino_Request
     * @uses DeleteRichiestaCartellino_Request::setIdentificativoRichiesta()
     * @param RichiestaCartellino_Identificativo $identificativoRichiesta
     */
    public function __construct(RichiestaCartellino_Identificativo $identificativoRichiesta = null)
    {
        $this
            ->setIdentificativoRichiesta($identificativoRichiesta);
    }
    /**
     * Get IdentificativoRichiesta 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 getIdentificativoRichiesta()
    {
        return isset($this->IdentificativoRichiesta) ? $this->IdentificativoRichiesta : null;
    }
    /**
     * Set IdentificativoRichiesta 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 $identificativoRichiesta
     * @return DeleteRichiestaCartellino_Request
     */
    public function setIdentificativoRichiesta(RichiestaCartellino_Identificativo $identificativoRichiesta = null)
    {
        if (is_null($identificativoRichiesta) || (is_array($identificativoRichiesta) && empty($identificativoRichiesta))) {
            unset($this->IdentificativoRichiesta);
        } else {
            $this->IdentificativoRichiesta = $identificativoRichiesta;
        }
        return $this;
    }
}
