<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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