<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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